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

Prevent calendar open on input click

Open ftmoose opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. I would like the option to prevent the calendar from opening when the input is clicked. Given that there is a preventOpenOnFocus it only logical for this prop to be available. Personally I would think the preventOpenOnFocus would also prevent the calendar from opening when the input is clicked, but with respect to existing code I think a new prop should be added.

Describe the solution you'd like Add a prop to the DatePicker component that disables the opening of the calendar when the input is clicked.

Describe alternatives you've considered Having the preventOpenOnFocus prop also prevent the calendar from opening on input click. As noted above, I don't think this is a good idea wrt existing behaviour.

ftmoose avatar Nov 10 '24 19:11 ftmoose

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 May 10 '25 02:05 github-actions[bot]

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

github-actions[bot] avatar Aug 22 '25 02:08 github-actions[bot]