MojtabaHs / iPhoneNumberField

Elegant SwiftUI phone number textField.
MIT License
542 stars 88 forks source link

Won't let me enter full phone number (specific number) #93

Closed kevlust closed 10 months ago

kevlust commented 11 months ago

Hi! A user in my app reported that they can't enter their full phone number, and I confirmed it. When they're halfway through typing their phone number, it kind of just resets to an empty string.

Here's my code:

iPhoneNumberField("Phone", text: $phone)
    .flagHidden(false)
    .flagSelectable(true)
    .prefixHidden(false)
    .formatted(false) // <- This seems to be the culprit. If I comment it out, issue is gone.

Important to note:

I'd really appreciate some help here, as this is blocking some users from creating accounts on my app. Thanks in advance!

github-actions[bot] commented 10 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 10 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.