fix(components): always emit scroll with scrollTop number (#4974)

This commit is contained in:
Herrington Darkholme 2021-12-26 02:44:47 -05:00 committed by GitHub
parent d03d8cc20a
commit 343b7e333f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ export default defineComponent({
state.scrollTop =
scrollContainer.value instanceof Window
? document.documentElement.scrollTop
: scrollContainer.value.scrollTop
: scrollContainer.value.scrollTop || 0
state.clientHeight = document.documentElement.clientHeight
if (props.position === 'top') {