refactor a smidge
This commit is contained in:
parent
68d9101f53
commit
61480f2193
1 changed files with 6 additions and 3 deletions
|
|
@ -193,9 +193,12 @@ export default {
|
|||
window.handleGoogleMapsAuthFailure = () => {
|
||||
this.unloadAutocomplete(); // Clean up any initialized autocomplete functionality
|
||||
if (this.addressField1) {
|
||||
document.getElementById('autocomplete').disabled = false; // Re-enable the address field so the user can manually enter their address
|
||||
document.getElementById('autocomplete').style.removeProperty('background-image'); // Remove the Google Maps icon from the address field
|
||||
document.getElementById('autocomplete').placeholder = ''; // Optionally, update the placeholder to indicate manual entry
|
||||
const el = this.addressField1;
|
||||
if (el) {
|
||||
el.disabled = false; // Re-enable the address field so the user can manually enter their address
|
||||
el.style.removeProperty('background-image'); // Remove the Google Maps icon from the address field
|
||||
el.placeholder = ''; // Optionally, update the placeholder to indicate manual entry
|
||||
}
|
||||
}
|
||||
this.showAllFields = true; // Show the address fields so the user can manually enter their address if Google Maps fails to load
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue