Skip to content

Commit

Permalink
Fixed LookupV2 search
Browse files Browse the repository at this point in the history
  • Loading branch information
Simeon Darakchiev authored and Simeon Darakchiev committed Aug 1, 2024
1 parent 75f797c commit c6fdc18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ts/address-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,10 @@ export default class AddressValidation {
this.currentSearchTerm = this.currentSearchTerm.trim();
}

if (this.currentSearchTerm.includes('locality', 0) || this.currentSearchTerm.includes('postal_code', 0)) {
this.avMode = AddressValidationMode.LOOKUPV2;
}

// Fire an event before a search takes place
this.events.trigger('pre-search', this.currentSearchTerm);

Expand Down

0 comments on commit c6fdc18

Please sign in to comment.