diff --git a/src/iss-components/address-questions/address-questions.vue b/src/iss-components/address-questions/address-questions.vue index 96ce8f07..5d9b8336 100644 --- a/src/iss-components/address-questions/address-questions.vue +++ b/src/iss-components/address-questions/address-questions.vue @@ -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 };