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,
|
||||
},
|
||||
|
||||
mounted() {
|
||||
document.addEventListener('keydown', (e) => {
|
||||
// Close the model when escape is pressed
|
||||
if (e.keyCode === 27) {
|
||||
this.$emit('close')
|
||||
}
|
||||
})
|
||||
},
|
||||
props: {
|
||||
enabled: {
|
||||
type: Boolean,
|
||||
|
|
Loading…
Reference in a new issue