From 42cde06cb1d29b2dde132bc0f1cc7c9f79f9e7d0 Mon Sep 17 00:00:00 2001 From: Aldo Canepa Garay <87341702+aldo-expensify@users.noreply.github.com> Date: Tue, 7 Feb 2023 13:38:38 -0800 Subject: [PATCH] Merge pull request #14921 from Expensify/hayata-fixAddressFieldDefaultMaxInputLength change maxInputLength default value to undefined from -1 (cherry picked from commit 017cde6581e10a092c3614bb49a692c447bad124) --- src/components/AddressSearch.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/AddressSearch.js b/src/components/AddressSearch.js index 32c06eccdcb0..0c5c6179a2f2 100644 --- a/src/components/AddressSearch.js +++ b/src/components/AddressSearch.js @@ -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.