mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
fix(components): [scrollbar] compatibility with wrapRef
does not exist (#18311)
This commit is contained in:
parent
18a77d5829
commit
f51162f559
@ -167,8 +167,10 @@ provide(
|
||||
)
|
||||
|
||||
onActivated(() => {
|
||||
wrapRef.value!.scrollTop = wrapScrollTop
|
||||
wrapRef.value!.scrollLeft = wrapScrollLeft
|
||||
if (wrapRef.value) {
|
||||
wrapRef.value.scrollTop = wrapScrollTop
|
||||
wrapRef.value.scrollLeft = wrapScrollLeft
|
||||
}
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user