react-dates / react-dates

An easily internationalizable, mobile-friendly datepicker library for the web
https://react-dates.github.io/react-dates/
MIT License
12.23k stars 1.71k forks source link

Blocked days can still be selected via input box #2048

Open KuroNoDev opened 4 years ago

KuroNoDev commented 4 years ago

A blocked day can't be selected by clicking on the day, but still can be selected by manually typing in the input box

blocked

Psvensso commented 4 years ago

What did you expect? It's a form component, you need to handle validation.

KuroNoDev commented 4 years ago

It's part of the component and not a custom input so I expected the input will also apply the same validations/options that I passed via props.

mukuljainx commented 3 years ago

+1, there should be error state for date-picker, maybe with red border-bottom to represent an error, it can also provide error as the second param on date change describing the type of error.

We did something similar with our components, https://innovaccer.github.io/design-system/?path=/story/organisms-datepicker-variants--with-input