mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(List): element with overflow: overlay
style should be considered a scroll container (#10743)
This commit is contained in:
parent
60bf564c7f
commit
91ef58aac1
@ -6,7 +6,7 @@ function isWindow(val: unknown): val is Window {
|
||||
|
||||
// get nearest scroll element
|
||||
// https://github.com/youzan/vant/issues/3823
|
||||
const overflowScrollReg = /scroll|auto/i;
|
||||
const overflowScrollReg = /scroll|auto|overlay/i;
|
||||
export function getScroller(el: HTMLElement, root: ScrollElement = window) {
|
||||
let node = el;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user