mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-30 10:18:02 +08:00
fix(components): [el-affix] get scrollContainer of vertical (#3424)
Co-authored-by: 徐志伟 <zwxu01@wisedu.com>
This commit is contained in:
parent
b6af879fa4
commit
ec96e9dbc7
@ -126,7 +126,7 @@ export default defineComponent({
|
||||
} else {
|
||||
target.value = document.documentElement
|
||||
}
|
||||
scrollContainer.value = getScrollContainer(root.value!)
|
||||
scrollContainer.value = getScrollContainer(root.value!, true)
|
||||
})
|
||||
|
||||
useEventListener(scrollContainer, 'scroll', onScroll)
|
||||
|
Loading…
Reference in New Issue
Block a user