Skip to content

Bug - DatePicker - Error stays when resetting the date #8905

@kmalyjur

Description

@kmalyjur

The error does not disappear when resetting the invalid value of the DatePicker to a blank one by not manually deleting it.

Steps to reproduce:
https://codesandbox.io/s/determined-banzai-h2876p?file=/index.tsx

  1. Write some invalid date into the text input of the DateTime component (e.g. "a")
  2. Click the "Clear date" button
    => The error message and the error icon do not disappear as they should

I am using @patternfly/react-core@4.271.2.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions