@@ -81,6 +82,12 @@ export default {
this.resetButtonStyle();
}
},
+ async onEnter(e) {
+ e.preventDefault();
+ document.getElementById("modalbtn")?.focus();
+ this.$refs.modalButtonMain.clicked();
+ document.getElementById(this.modalId)?.focus();
+ },
resetButtonStyle() {
this.$refs.modalButtonMain.resetButtonStyle();
},
diff --git a/src/layouts/payment-method/promo-modal-question/promo-modal-question.vue b/src/layouts/payment-method/promo-modal-question/promo-modal-question.vue
index a7171a098..120e88292 100644
--- a/src/layouts/payment-method/promo-modal-question/promo-modal-question.vue
+++ b/src/layouts/payment-method/promo-modal-question/promo-modal-question.vue
@@ -11,7 +11,6 @@
:headerText="modalHeaderText"
:onModalClosedCallback="onModalClosed"
:onModalOpenedCallback="focusOnPromoInput"
- @keypress.enter="onEnter"
:footerButtonText="modalFooterText"
@footer-button-event="addPromoCode">