diff --git a/src/layouts/address-lookup/customer-questions/address-questions/address-questions.vue b/src/layouts/address-lookup/customer-questions/address-questions/address-questions.vue index 6f09ecf6c..060ee806b 100644 --- a/src/layouts/address-lookup/customer-questions/address-questions/address-questions.vue +++ b/src/layouts/address-lookup/customer-questions/address-questions/address-questions.vue @@ -111,9 +111,7 @@ export default { alertCopyVerificationWarning: "", alertHeadlineNoMatchWarning: "", alertCopyNoMatchWarning: "", - matchingIndirectly: false, matchFound: null, // null = no attempted match, true = match was found, false = match was not found - enterPressed: false, }; }, computed: { @@ -235,15 +233,17 @@ export default { }); addressField1.addEventListener("keydown", (e) => { - if (e.code === "Enter" || e.code === "NumpadEnter") { - const selectedItem = document.querySelector(".pac-container .pac-item-selected"); + if (e.code === "Enter" || e.code === "NumpadEnter") { + const selectedItem = document.querySelector( + ".pac-container .pac-item-selected" + ); if (selectedItem !== null) { // Fill-in the address using selected item in the list. - fillInAddress(selectedItem); + fillInAddress(selectedItem); } else { // Fill-in the address using first item in the list. fillInAddressUsingFirstItem(); - } + } } else { return; } @@ -265,7 +265,6 @@ export default { // Fill-in the address using first item in the list. fillInAddressUsingFirstItem(); } - }); function fillInAddressUsingFirstItem() {