mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 23:55:08 +00:00
fix(List): element with overflow: overlay
style should be considered a scroll container (#10743)
This commit is contained in:

committed by
chenjiahan

parent
2c2cdd077f
commit
e61d85a890
@@ -3,7 +3,7 @@ import { inBrowser } from '../utils';
|
|||||||
|
|
||||||
type ScrollElement = HTMLElement | Window;
|
type ScrollElement = HTMLElement | Window;
|
||||||
|
|
||||||
const overflowScrollReg = /scroll|auto/i;
|
const overflowScrollReg = /scroll|auto|overlay/i;
|
||||||
const defaultRoot = inBrowser ? window : undefined;
|
const defaultRoot = inBrowser ? window : undefined;
|
||||||
|
|
||||||
function isElement(node: Element) {
|
function isElement(node: Element) {
|
||||||
|
Reference in New Issue
Block a user