Commit 3a19bdd1 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Dialog: fix visible.sync compatibility with before-close

parent b269c22b
...@@ -117,11 +117,15 @@ ...@@ -117,11 +117,15 @@
}, },
handleClose() { handleClose() {
if (typeof this.beforeClose === 'function') { if (typeof this.beforeClose === 'function') {
this.beforeClose(this.close); this.beforeClose(this.hide);
} else { } else {
this.close(); this.hide();
} }
}, },
hide() {
this.$emit('update:visible', false);
this.$emit('visible-change', false);
},
updatePopper() { updatePopper() {
this.broadcast('ElSelectDropdown', 'updatePopper'); this.broadcast('ElSelectDropdown', 'updatePopper');
this.broadcast('ElDropdownMenu', 'updatePopper'); this.broadcast('ElDropdownMenu', 'updatePopper');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment