From 9a554826819bda40a7620a1952c2a5f4218c7697 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 26 Feb 2022 12:55:38 +0100 Subject: [PATCH] fix: don't fire close event multiple times --- src/components/modal/modal.vue | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/components/modal/modal.vue b/src/components/modal/modal.vue index 1103ff86..3ee52544 100644 --- a/src/components/modal/modal.vue +++ b/src/components/modal/modal.vue @@ -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,