-
Notifications
You must be signed in to change notification settings - Fork 125
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: (core) DatePicker - fix form's valid flag, when allowNull #1609
Conversation
Deploy preview for fundamental-ngx ready! Built with commit 7d0fe76 |
@JKMarkowski can you put |
* 0, when none, | ||
* 1, when only startDate, or endDate same as startDate, | ||
* 2, when both | ||
* 0, when none of selected, or start date is invalid, |
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.
My English is not good, but doesn't this mean exactly the same as point 2? (both are valid)
@stefanoScalzo some help here?
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.
should be
0, when selected and startDate are valid
1, when given valid startDate and endDate is same as startDate
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.
It has been changed, please take a look on it now.
* 1, when only startDate, or endDate same as startDate, | ||
* 2, when both | ||
* 0, when none of selected, or start date is invalid, | ||
* 1, when only startDate, or endDate same as startDate, but startDate is valid, |
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.
And here I am lost ...
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.
It has been changed :)
8d4bc05
to
ab41b6c
Compare
Perfect! |
Please provide a link to the associated issue.
fixes: #1598
Please provide a brief summary of this pull request.
Right now I check if the input is empty and allowNull flag is added. Also there was some minor bug on datepicker, which is fixed now.
Please check whether the PR fulfills the following requirements
This is only fix PR, without any new things. So no docs needs to be changed.
https://github.com/SAP/fundamental-ngx/blob/master/CONTRIBUTING.md
Documentation checklist:
README.md