mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
fix(components): [dialog] error calling resetPostion before dialog is rendered (#17855)
fix: [Component][dialog]在dialog显示之前调用dialog.resetPostion()方法会抛异常 #17851 Co-authored-by: gao.dong <gao.dong@bestv.com.cn>
This commit is contained in:
parent
c0f06a4fc4
commit
2d6c16fae9
@ -143,7 +143,7 @@ const overlayEvent = useSameTarget(onModalClick)
|
||||
const draggable = computed(() => props.draggable && !props.fullscreen)
|
||||
|
||||
const resetPostion = () => {
|
||||
dialogContentRef.value.resetPostion()
|
||||
dialogContentRef.value?.resetPostion()
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
|
Loading…
Reference in New Issue
Block a user