mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-30 11:16:12 +08:00
fix(components): [dialog] fix scroll bar not resetting to top on reopen (#19471)
* fix(components): [dialog] Fix scroll bar not resetting to top on reopen closed #19420 * fix(components): update * fix(components): [dialog] update --------- Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
This commit is contained in:
parent
6316898909
commit
062ac99aec
@ -167,6 +167,8 @@ export const useDialog = (
|
||||
nextTick(() => {
|
||||
emit('open')
|
||||
if (targetRef.value) {
|
||||
targetRef.value.parentElement!.scrollTop = 0
|
||||
targetRef.value.parentElement!.scrollLeft = 0
|
||||
targetRef.value.scrollTop = 0
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user