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
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

View File

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