refactor a smidge

This commit is contained in:
Bill Richardson 2026-05-26 15:28:04 -04:00
parent 68d9101f53
commit 61480f2193

View file

@ -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
};