fix(components): [el-affix] get scrollContainer of vertical (#3424)

Co-authored-by: 徐志伟 <zwxu01@wisedu.com>
This commit is contained in:
Summer 2021-09-27 14:53:16 +08:00 committed by GitHub
parent b6af879fa4
commit ec96e9dbc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)