react-datepicker
react-datepicker copied to clipboard
Disabled property doesn't work for inline DatePicker
"disable" property has no effects on DatePicker with "inline" property
Steps to reproduce the behavior:
- Go to demo page.
- Find "Inline version" demo
- Add "disabled" property to the DatePicker
- Nothing is disabled
Expected behavior "disabled" property supposed to disable user interaction.
As workaround I have applied pointerEvents: "none" style to disable calendar, but it would be nice to have disabled property working.
Hi @andriy-viyatyk, The reason is because, the package by default don't have disabled property. When you set disabled it's applied to the datepicker input and it's getting disabled. But for the iniline datepicker, we need to add a support for it. I'll work on it.