Fixed #2675 - ConfirmDialog: closeOnEscape support
parent
a3be7c4a48
commit
6e7972acf4
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<CDialog v-model:visible="visible" :modal="true" :header="header" :blockScroll="blockScroll" :position="position" class="p-confirm-dialog"
|
<CDialog v-model:visible="visible" :modal="true" :header="header" :blockScroll="blockScroll" :position="position" class="p-confirm-dialog"
|
||||||
:breakpoints="breakpoints">
|
:breakpoints="breakpoints" :closeOnEscape="closeOnEscape">
|
||||||
<i :class="iconClass" />
|
<i :class="iconClass" />
|
||||||
<span class="p-confirm-dialog-message">{{message}}</span>
|
<span class="p-confirm-dialog-message">{{message}}</span>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
@ -110,6 +110,9 @@ export default {
|
||||||
},
|
},
|
||||||
autoFocusReject() {
|
autoFocusReject() {
|
||||||
return this.confirmation.defaultFocus === 'reject' ? true : false;
|
return this.confirmation.defaultFocus === 'reject' ? true : false;
|
||||||
|
},
|
||||||
|
closeOnEscape() {
|
||||||
|
return this.confirmation ? this.confirmation.closeOnEscape : true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|
Loading…
Reference in New Issue