fix(dialog): escape closing when not closable via button
parent
f481158d36
commit
7f3fb4a6c1
|
@ -141,6 +141,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
close() {
|
||||
console.log('close');
|
||||
this.$emit('update:visible', false);
|
||||
},
|
||||
onEnter() {
|
||||
|
@ -331,7 +332,7 @@ export default {
|
|||
this.bindDocumentDragEndListener();
|
||||
}
|
||||
|
||||
if (this.closeOnEscape && this.closable) {
|
||||
if (this.closeOnEscape) {
|
||||
this.bindDocumentKeyDownListener();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue