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:
It only happens when .formatted(false). If I remove that modifier, it works fine.
I've only seen it happen with a specific phone number. Try typing 310 824 3190.
I'd really appreciate some help here, as this is blocking some users from creating accounts on my app. Thanks in advance!
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:
Important to note:
.formatted(false)
. If I remove that modifier, it works fine.I'd really appreciate some help here, as this is blocking some users from creating accounts on my app. Thanks in advance!