diff --git a/src/digital-components/modal/modal.vue b/src/digital-components/modal/modal.vue index 9b90f438..1dbd11aa 100644 --- a/src/digital-components/modal/modal.vue +++ b/src/digital-components/modal/modal.vue @@ -6,7 +6,7 @@ tabindex="-1" aria-labelledby="ModalComponentLabel" aria-hidden="true" - @keypress.enter="onEnter" + @keydown.enter="onKeyDown" v-on="{ 'hidden.bs.modal': onModalClosed, 'shown.bs.modal': onModalOpened @@ -107,7 +107,7 @@ export default { this.resetButtonStyle(); } }, - async onEnter(e) { + async onKeyDown(e) { e.preventDefault(); document.getElementById('modalbtn')?.focus(); this.$refs.modalButtonMain.clicked();