SSR-1273. Fix bug on the policy-holder-details page (#706)

This commit is contained in:
Johan Gunawan 2024-05-15 14:32:52 -04:00 committed by GitHub
parent 61beb2bbe6
commit 332f6b4ec5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -203,6 +203,11 @@ export default {
// Set up the pressing tab inside address1 field (enter's are caught by Google Autocomplete)
this.addressField1.addEventListener('keydown', (e) => {
// If a match has been previously attempted then do nothing
if (this.matchFound !== null) {
return;
}
if (this.addressField1.value?.length > 0 && e.code === 'Tab') {
this.fillInAddressUsingFirstItem();
}