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(DatePicker): error not showing on date reset by button #9267

Merged
merged 7 commits into from
Aug 24, 2023

Conversation

adamviktora
Copy link
Contributor

What: Closes #8905

@patternfly-build
Copy link
Contributor

patternfly-build commented Jun 13, 2023

@@ -40,8 +40,12 @@ export interface DatePickerProps
inputProps?: TextInputProps;
/** Flag indicating the date picker is disabled. */
isDisabled?: boolean;
/** Flag indicating the date picker is required. */
isRequired?: boolean;
Copy link
Contributor

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

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

one small comment

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

LGTM

@thatblindgeye thatblindgeye merged commit 4fccdaf into patternfly:main Aug 24, 2023
10 checks passed
nicolethoen pushed a commit to Kells512/patternfly-react that referenced this pull request Sep 1, 2023
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug - DatePicker - Error stays when resetting the date
5 participants