fix: don't fire close event multiple times

This commit is contained in:
kolaente 2022-02-26 12:55:38 +01:00
parent b83cec2f0e
commit 9a55482681
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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,