mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-18 10:59:10 +08:00
fix(components): always emit scroll with scrollTop number (#4974)
This commit is contained in:
parent
d03d8cc20a
commit
343b7e333f
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user