Skip to content

Commit

Permalink
fix: phone number input compatibility with i18nify
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhdaware committed Oct 18, 2024
1 parent bd8c420 commit 44358d3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const _PhoneNumberInput: React.ForwardRefRenderFunction<BladeElementRef, PhoneNu
}

return (Object.keys(flags) as CountryCodeType[])
.filter((countryCode) => !countryCode.includes('-')) // remove the non ISO 3166-1 alpha-2 country codes
.map((countryCode) => {
return {
code: countryCode,
Expand Down

0 comments on commit 44358d3

Please sign in to comment.