mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
fix(List): element with overflow: overlay
style should be considered a scroll container (#10743)
This commit is contained in:
parent
2c2cdd077f
commit
e61d85a890
@ -3,7 +3,7 @@ import { inBrowser } from '../utils';
|
||||
|
||||
type ScrollElement = HTMLElement | Window;
|
||||
|
||||
const overflowScrollReg = /scroll|auto/i;
|
||||
const overflowScrollReg = /scroll|auto|overlay/i;
|
||||
const defaultRoot = inBrowser ? window : undefined;
|
||||
|
||||
function isElement(node: Element) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user