patternfly-react icon indicating copy to clipboard operation
patternfly-react copied to clipboard

Bug - DatePicker - not revalidated on change to validators prop

Open KevinFCormier opened this issue 2 years ago • 0 comments

Describe the problem If the validators prop is changed, the DatePicker does not re-run the validation.

How do you reproduce the problem? The Date and time range picker example can be used to demonstrate this issue. Enter a “to” date that is before the “from” date, and observe the validation error appear. Then change the “from” date to be before the “to” date. The validation error does not go away until you tab into and then out of the “to” date field.

Expected behavior If the field has already been validated at least one due to text entry or losing focus, then the validation should occur again if the validation functions change.

Is this issue blocking you? For now we need to perform validation outside of the component and add our own helper text.

What is your environment?

  • Version 5

What is your product and what release date are you targeting? OpenShift Cluster Manager UI - continuous release

KevinFCormier avatar Feb 01 '24 15:02 KevinFCormier