Authenticator - Can't make phone number optional #4794
Labels
Authenticator
An issue or a feature-request for an Authenticator UI Component
bug
Something isn't working
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Authenticator
How is your app built?
Create React App
What browsers are you seeing the problem on?
Chrome
Which region are you seeing the problem in?
No response
Please describe your bug.
When the
phone_number
field is set as optional in the sign-up form, if it is left empty, the form still verifies the field and displays a warning message, "Invalid phone number format."What's the expected behaviour?
If the phone number field is optional, the form should only validate it if there are any characters input. Or empty field is acceptable when the field is optional.
Help us reproduce the bug!
Setup a basic react app, add auth category and UI component.
Code Snippet
Console log output
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: