react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Disabled property doesn't work for inline DatePicker

Open andriy-viyatyk opened this issue 8 months ago • 2 comments

"disable" property has no effects on DatePicker with "inline" property

Steps to reproduce the behavior:

  1. Go to demo page.
  2. Find "Inline version" demo
  3. Add "disabled" property to the DatePicker
  4. Nothing is disabled

Expected behavior "disabled" property supposed to disable user interaction.

andriy-viyatyk avatar May 11 '25 09:05 andriy-viyatyk

As workaround I have applied pointerEvents: "none" style to disable calendar, but it would be nice to have disabled property working.

andriy-viyatyk avatar May 11 '25 10:05 andriy-viyatyk

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.

balajis-qb avatar May 20 '25 06:05 balajis-qb