Removed comments on address-questions
This commit is contained in:
parent
66f1a0039f
commit
12477ca649
1 changed files with 0 additions and 25 deletions
|
|
@ -277,26 +277,6 @@ export default {
|
|||
}
|
||||
});
|
||||
|
||||
// addressField1.addEventListener("change", () => {
|
||||
// // If a match has been previously attempted then do nothing
|
||||
// if (self.matchFound !== null) {
|
||||
// return;
|
||||
// }
|
||||
|
||||
// // Get the address that the user clicked on (if any)
|
||||
// const clickedAddress = document.querySelector(
|
||||
// ".pac-container .pac-item:hover"
|
||||
// );
|
||||
|
||||
// // If the Street Address field changed without clicking (i.e. by pressing Tab, or clicking outside the field)
|
||||
// if (clickedAddress === null) {
|
||||
// // Fill-in the address using first item in the list.
|
||||
// fillInAddressUsingFirstItem();
|
||||
// }
|
||||
|
||||
// console.log("change");
|
||||
// });
|
||||
|
||||
function fillInAddressUsingFirstItem() {
|
||||
// Fill-in the address using first item in the list.
|
||||
const item = document.querySelector(".pac-container .pac-item");
|
||||
|
|
@ -320,7 +300,6 @@ export default {
|
|||
}
|
||||
|
||||
function fillInAddress(place) {
|
||||
console.log("fillInAddress");
|
||||
if (!place) {
|
||||
place = autocomplete.getPlace();
|
||||
}
|
||||
|
|
@ -329,10 +308,6 @@ export default {
|
|||
self.matchFound = true;
|
||||
|
||||
self.$nextTick(function () {
|
||||
//self.addressModel.streetAddress = "";
|
||||
|
||||
//self.$nextTick();
|
||||
|
||||
self.showAddressFields = true;
|
||||
|
||||
for (const component of place.address_components) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue