fix(dialog): escape closing when not closable via button

pull/7094/head
Jakub Michálek 2025-01-14 15:22:06 +01:00
parent f481158d36
commit 7f3fb4a6c1
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}
},