react-native-international-phone-number 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -234,7 +234,7 @@ const PhoneInput = forwardRef(
234
234
  : possibleLengths.slice(-1)[0];
235
235
 
236
236
  if (formattedNumber?.replace(/\D/g, '')?.length > possibleLength) {
237
- return;
237
+ return phoneNumber.slice(0, -1);
238
238
  }
239
239
 
240
240
  return formattedNumber;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-international-phone-number",
3
3
  "author": "AstrOOnauta (https://github.com/AstrOOnauta)",
4
- "version": "0.10.2",
4
+ "version": "0.10.3",
5
5
  "description": "International mobile phone input component with mask for React Native",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",