Skip to content

Conversation

@iM-GeeKy
Copy link
Collaborator

@iM-GeeKy iM-GeeKy commented Jan 1, 2023

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 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.

@RichardLindhout RichardLindhout merged commit e567e20 into master Jan 5, 2023
@iM-GeeKy iM-GeeKy deleted the date-input-props branch January 9, 2023 12:15
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.

3 participants