Skip to content

Commit

Permalink
Merge pull request #14921 from Expensify/hayata-fixAddressFieldDefaul…
Browse files Browse the repository at this point in the history
…tMaxInputLength

change maxInputLength default value to undefined from -1

(cherry picked from commit 017cde6)
  • Loading branch information
aldo-expensify authored and OSBotify committed Feb 7, 2023
1 parent 90ee142 commit 42cde06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/AddressSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ const defaultProps = {
state: 'addressState',
zipCode: 'addressZipCode',
},

// A maximum of -1 means the user can enter as many characters as they want
maxInputLength: -1,
maxInputLength: undefined,
};

// Do not convert to class component! It's been tried before and presents more challenges than it's worth.
Expand Down

0 comments on commit 42cde06

Please sign in to comment.