-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix: phone number compulsory field remove #3378
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
Changes from 3 commits
8245c83
87e18fe
7b32207
2a909af
affcc58
51f5f97
9f0cb95
83a4133
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,15 +44,16 @@ export default Component.extend(FormMixin, { | |
| }, | ||
| phone: { | ||
| identifier : 'phone', | ||
| optional : true, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need optional here? |
||
| rules : [ | ||
| { | ||
| type : 'empty', | ||
|
||
| prompt : this.l10n.t('Please enter a phone number.') | ||
| prompt : this.l10n.t('Please enter a phone number') | ||
| }, | ||
| { | ||
| type : 'regExp', | ||
| value : validPhoneNumber, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why remove this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that after removing an "empty" type, a validator can't allow empty input in the phone field. so I just remove it and add inputtype=number. |
||
| prompt : this.l10n.t('Please enter a valid phone number.') | ||
| prompt : this.l10n.t('Please enter a valid phone number') | ||
| } | ||
| ] | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Parth910 Just add
Rest is done
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for help, I made some unwanted changes. I have made requested changes.