react-simple-phone-input 5.3.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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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