Skip to content

Commit

Permalink
Merge pull request #1233 from CruGlobal/hs-1262665-match-zip-code
Browse files Browse the repository at this point in the history
[HS-1262665] Fix addresses with zip codes not showing predictions
  • Loading branch information
canac authored Dec 19, 2024
2 parents b804b58 + 4404bd6 commit eaf5e36
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ export const StreetAutocomplete: React.FC<StreetAutocompleteProps> = ({
typeof option === 'string' ? option : option.description
}
options={predictions}
// Disable filtering addresses by the input and rely on the Google Maps API to provide
// relevant address predictions
filterOptions={(options) => options}
value={streetValue}
onChange={(_event, newValue) => {
if (typeof newValue === 'string') {
Expand Down

0 comments on commit eaf5e36

Please sign in to comment.