-
Notifications
You must be signed in to change notification settings - Fork 375
fix(DatePicker): error not showing on date reset by button #9267
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(DatePicker): error not showing on date reset by button #9267
Conversation
|
Preview: https://patternfly-react-pr-9267.surge.sh A11y report: https://patternfly-react-pr-9267-a11y.surge.sh |
| /** Flag indicating the date picker is disabled. */ | ||
| isDisabled?: boolean; | ||
| /** Flag indicating the date picker is required. */ | ||
| isRequired?: boolean; |
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.
Could you rebase. Another PR went in to fix a different issue and it added an API for isRequred and emptyDateText
… error when cleared and required
711e828 to
0a971ab
Compare
tlabaj
left a comment
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.
one small comment
tlabaj
left a comment
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.
LGTM
…y#9267) * fix(DatePicker): clear error on date reset * feat(DatePicker): add clear date example to controlled DatePicker * test(DatePicker): add integration test for clear date * feat(DatePicker): update clear date logic based on patternfly#9373 * fix(DatePicker): hide error when date cleared and not required + show error when cleared and required * refactor(DatePicker) * fix(DatePicker): prop removal
What: Closes #8905