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)