Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent calendar open on input click #5217

Open
ftmoose opened this issue Nov 10, 2024 · 0 comments
Open

Prevent calendar open on input click #5217

ftmoose opened this issue Nov 10, 2024 · 0 comments

Comments

@ftmoose
Copy link

ftmoose commented Nov 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant