fix: don't fire close event multiple times
This commit is contained in:
parent
b83cec2f0e
commit
9a55482681
1 changed files with 0 additions and 8 deletions
|
@ -85,14 +85,6 @@ export default {
|
||||||
BaseButton,
|
BaseButton,
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
|
||||||
document.addEventListener('keydown', (e) => {
|
|
||||||
// Close the model when escape is pressed
|
|
||||||
if (e.keyCode === 27) {
|
|
||||||
this.$emit('close')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
props: {
|
props: {
|
||||||
enabled: {
|
enabled: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|
Loading…
Reference in a new issue