From 4e9ddcdb53e3c41668e995291df27e8d7dce39b9 Mon Sep 17 00:00:00 2001 From: yanzhuang Date: Mon, 5 Jul 2021 09:16:00 +0800 Subject: [PATCH] Utils: fix isScroll (#2433) --- packages/utils/dom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/utils/dom.ts b/packages/utils/dom.ts index f8796e2a2d..edd20f6b0d 100644 --- a/packages/utils/dom.ts +++ b/packages/utils/dom.ts @@ -166,7 +166,7 @@ export const isScroll = ( ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') - return overflow.match(/(scroll|auto)/) + return overflow.match(/(scroll|auto|overlay)/) } export const getScrollContainer = (