From 618dec895cad7ea575beda39643ac449ee5a0c68 Mon Sep 17 00:00:00 2001 From: chetanbnagmoti <119286565+chetanbnagmoti@users.noreply.github.com> Date: Tue, 3 Dec 2024 13:39:20 +0530 Subject: [PATCH] Update index.js Please changes this Check Because Some Country code Have more than 17 digit including country code so only accepted 15 digit so it is wrong --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index e4eb729..5aef64b 100644 --- a/src/index.js +++ b/src/index.js @@ -252,7 +252,7 @@ class ReactPhoneInput extends React.Component { freezeSelection = this.state.freezeSelection; //Does not exceed 16 digit phone number limit - if(event.target.value.replace(/\D/g, '').length > 16) { + if(event.target.value.replace(/\D/g, '').length > 18) { return; }