Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: validation of phone number #778

Merged
merged 2 commits into from
Jul 21, 2021
Merged

Conversation

cbratsch
Copy link
Contributor

@cbratsch cbratsch commented Jul 9, 2021

PR Type

[x] Feature

What Is the Current Behavior?

input field for for phone number is standard input type text without validation (see issue below for more details)

Issue Number: Closes #424

What Is the New Behavior?

  • Formly field for phone numbers is available
  • Phone number is validated
  • most common validation messages (phone and required) are added to the field
  • Input for phone number use type "tel" to improve mobile behavior

Does this PR Introduce a Breaking Change?

[x] No

Other Information

AB#64695

@cbratsch cbratsch requested review from iwiederhold, suschneider and shauke and removed request for suschneider July 9, 2021 09:20
@SGrueber SGrueber added the bug Something isn't working label Jul 9, 2021
@SGrueber SGrueber added this to the 1.0 milestone Jul 9, 2021
@shauke
Copy link
Collaborator

shauke commented Jul 9, 2021

Shouldn't there be some sort of validation error message?
image

@shauke
Copy link
Collaborator

shauke commented Jul 9, 2021

Something seems wrong with the regular expression. The following errors are logged to the browser console when entering numbers in the phone input.
image

shauke
shauke previously requested changes Jul 12, 2021
Copy link
Collaborator

@shauke shauke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good to me but there is an additional IAD comment.

@shauke shauke requested a review from SGrueber July 12, 2021 14:45
Copy link
Collaborator

@SGrueber SGrueber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a documentation to the formly.md file

@cbratsch cbratsch requested a review from M-Behr July 14, 2021 04:24
@cbratsch cbratsch force-pushed the bug/validation-for-phone-number branch from 4dabe38 to da50027 Compare July 14, 2021 11:29
@cbratsch cbratsch requested review from shauke and SGrueber July 15, 2021 04:41
@SGrueber
Copy link
Collaborator

docu of the phonefield is missing in formly.md

@cbratsch cbratsch force-pushed the bug/validation-for-phone-number branch from da50027 to aa706b4 Compare July 16, 2021 09:44
@cbratsch cbratsch requested a review from SGrueber July 16, 2021 10:07
M-Behr
M-Behr previously approved these changes Jul 16, 2021
Copy link

@M-Behr M-Behr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works very well. Even the number pad opens on my mobile phone. Nice!

@cbratsch cbratsch force-pushed the bug/validation-for-phone-number branch from aa706b4 to 11d6bbc Compare July 19, 2021 04:38
SGrueber
SGrueber previously approved these changes Jul 19, 2021
@cbratsch cbratsch force-pushed the bug/validation-for-phone-number branch from 11d6bbc to 9632591 Compare July 19, 2021 08:42
@SGrueber SGrueber dismissed shauke’s stale review July 20, 2021 08:05

it is ok now

SGrueber
SGrueber previously approved these changes Jul 20, 2021
iwiederhold
iwiederhold previously approved these changes Jul 20, 2021
@cbratsch cbratsch dismissed stale reviews from iwiederhold and SGrueber via 75428a6 July 20, 2021 09:03
@cbratsch cbratsch force-pushed the bug/validation-for-phone-number branch from 9632591 to 75428a6 Compare July 20, 2021 09:03
@cbratsch cbratsch requested a review from SGrueber July 21, 2021 04:27
@M-Behr M-Behr self-requested a review July 21, 2021 06:51
@cbratsch cbratsch merged commit a48191a into develop Jul 21, 2021
@cbratsch cbratsch deleted the bug/validation-for-phone-number branch July 21, 2021 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation for phone number has to be corrected.
5 participants