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

search still working even if the time is disabled

Open grt-mark opened this issue 1 year ago • 1 comments

I created a custom time picker range and im having a problem with the search functionality and i dont want to remove it by targeting the key down event and preventing the default. So been checking the docs on how i can detect if the selected time is disabled or not then not apply the selected time if its disabled.

The problem is I noticed that even if the time is already disabled using the filterTimes props, it still can be searched when enter is pressed. Any suggestions?

1 then 2 then after this pic above when i press enter on the selected disabled time it will still be selected

grt-mark avatar Jul 08 '24 07:07 grt-mark

would be nice if it cant be selected by any means lets says when i press enter if it is disabled

grt-mark avatar Jul 08 '24 07:07 grt-mark

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Jan 13 '25 02:01 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar Jan 24 '25 02:01 github-actions[bot]