adding console logs to view on Chrome iOS
This commit is contained in:
parent
cbc956b017
commit
2db671380a
1 changed files with 17 additions and 15 deletions
|
|
@ -287,6 +287,7 @@ export default {
|
||||||
// });
|
// });
|
||||||
|
|
||||||
this.addressField1.addEventListener("input", (e) => {
|
this.addressField1.addEventListener("input", (e) => {
|
||||||
|
console.log(`input event`);
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
|
||||||
switch (e.inputType) {
|
switch (e.inputType) {
|
||||||
|
|
@ -298,7 +299,7 @@ export default {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// If the user enters text by *autofill* then disable the *autocomplete*
|
// If the user enters text by *autofill* then disable the *autocomplete*
|
||||||
this.showAddressFields = true;
|
//this.showAddressFields = true;
|
||||||
//this.addressField1.dispatchEvent(new Event("change"))
|
//this.addressField1.dispatchEvent(new Event("change"))
|
||||||
this.unloadAutocomplete();
|
this.unloadAutocomplete();
|
||||||
}
|
}
|
||||||
|
|
@ -447,23 +448,24 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Temporary
|
// Temporary
|
||||||
// const element = document.getElementsByClassName("address-questions")[0];
|
const element = document.getElementsByClassName("address-questions")[0];
|
||||||
// element.addEventListener("change", (e) => {
|
element.addEventListener("change", (e) => {
|
||||||
// console.log(e)
|
console.log(`change event`);
|
||||||
// if (this.showAddressFields) {
|
console.log(e);
|
||||||
// return false;
|
if (this.showAddressFields) {
|
||||||
// }
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// let autoFilledInputs = [];
|
let autoFilledInputs = [];
|
||||||
// autoFilledInputs = element.querySelectorAll("input:-webkit-autofill");
|
autoFilledInputs = element.querySelectorAll("input:-webkit-autofill");
|
||||||
|
|
||||||
// this.showAddressFields = autoFilledInputs.length > 0;
|
this.showAddressFields = autoFilledInputs.length > 0;
|
||||||
// if (this.showAddressFields) {
|
if (this.showAddressFields) {
|
||||||
// this.unloadAutocomplete();
|
this.unloadAutocomplete();
|
||||||
// }
|
}
|
||||||
|
|
||||||
// this.addressField1.classList.remove("has-icon");
|
this.addressField1.classList.remove("has-icon");
|
||||||
// });
|
});
|
||||||
},
|
},
|
||||||
beforeUpdate() {
|
beforeUpdate() {
|
||||||
// It is necessary to set focus on the street address on this lifecycle hook when this component is used in a modal.
|
// It is necessary to set focus on the street address on this lifecycle hook when this component is used in a modal.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue