Removing unused state variables
This commit is contained in:
parent
00c5b46b5f
commit
2545b655d3
1 changed files with 6 additions and 7 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue