mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(dialog): fix date-picker is empty when dialog opened first time (#1144)
Fix date-picker in dialog is empty when dialog opened first time fix #1021
This commit is contained in:
@@ -131,8 +131,8 @@ export default function(props: UseDialogProps, ctx: SetupContext, targetRef: Ref
|
||||
watch(() => props.modelValue, val => {
|
||||
if (val) {
|
||||
closed.value = false
|
||||
rendered.value = true // enables lazy rendering
|
||||
open()
|
||||
rendered.value = true // enables lazy rendering
|
||||
ctx.emit(OPEN_EVENT)
|
||||
zIndex.value = props.zIndex ? zIndex.value++ : PopupManager.nextZIndex()
|
||||
// this.$el.addEventListener('scroll', this.updatePopper)
|
||||
|
||||
Reference in New Issue
Block a user