From ec96e9dbc7ab7f2eaecaafb4bdbe43c7db40a1de Mon Sep 17 00:00:00 2001 From: Summer Date: Mon, 27 Sep 2021 14:53:16 +0800 Subject: [PATCH] fix(components): [el-affix] get scrollContainer of vertical (#3424) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 徐志伟 --- packages/components/affix/src/affix.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/affix/src/affix.vue b/packages/components/affix/src/affix.vue index c535258bca..267e45f729 100644 --- a/packages/components/affix/src/affix.vue +++ b/packages/components/affix/src/affix.vue @@ -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)