patternfly-react
patternfly-react copied to clipboard
Bug - [DatePicker] - Invalid input with multiple validators
If there are multiple validators, the DatePicker text input will show the invalid icon after onBlur (click/focus out of the input). Seems to work fine with one validator, but as soon as I add another the icon pops up.
Reproducible example:
import React from 'react';
import { DatePicker } from '@patternfly/react-core';
export const DatePickerTest: React.FunctionComponent = () => {
const rangeValidator = (date: Date) => {
return '';
};
const rangeValidatorB = (date: Date) => {
return '';
};
return <DatePicker value="2020-03-17" validators={[rangeValidator, rangeValidatorB]} />;
};
