react-simple-phone-input 6.0.0 → 6.0.1

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.
package/dist/index.js CHANGED
@@ -4398,7 +4398,7 @@ var PhoneInput = ({ placeholder, country, onChange, value, iconComponent, inputP
4398
4398
  if (e.key === "Escape") {
4399
4399
  setDropdown(false);
4400
4400
  }
4401
- if (e.key === "Enter" && cursor >= 0) {
4401
+ if (e.key === "Enter" && cursor >= 0 && countryDataInfo[cursor]) {
4402
4402
  setSelected(countryDataInfo[cursor]);
4403
4403
  setDropdown(false);
4404
4404
  }
package/dist/index.mjs CHANGED
@@ -4365,7 +4365,7 @@ var PhoneInput = ({ placeholder, country, onChange, value, iconComponent, inputP
4365
4365
  if (e.key === "Escape") {
4366
4366
  setDropdown(false);
4367
4367
  }
4368
- if (e.key === "Enter" && cursor >= 0) {
4368
+ if (e.key === "Enter" && cursor >= 0 && countryDataInfo[cursor]) {
4369
4369
  setSelected(countryDataInfo[cursor]);
4370
4370
  setDropdown(false);
4371
4371
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-simple-phone-input",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "A simple react phone input component with calling code dropdown🤷",
5
5
  "homepage": "https://react-phone-input.siamahnaf.com/",
6
6
  "main": "dist/index.js",