The DatePickerInput does not give the flexibility to roll out your own validation (ex. if a user selected date of birth is older than 18 years) which could result in two helperText errors being shown under the DatePickerInput.
This PR introduces a few new props hideValidationErrors, hasError, and onValidationError, etc in order to provide the ability to ingest the internal validation errors from the component, hide the components error styles, and give the developer the option of rolling out there own validation.
The developer docs are updated as well to have all the new props along with some other missing props.
Motivation
The
DatePickerInput
does not give the flexibility to roll out your own validation (ex. if a user selected date of birth is older than 18 years) which could result in twohelperText
errors being shown under theDatePickerInput
.This PR introduces a few new props
hideValidationErrors
,hasError
, andonValidationError
, etc in order to provide the ability to ingest the internal validation errors from the component, hide the components error styles, and give the developer the option of rolling out there own validation.The developer docs are updated as well to have all the new props along with some other missing props.