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

Ability to prevent input from being given focus #5262

Open
luke-denton-ofx opened this issue Dec 4, 2024 · 0 comments
Open

Ability to prevent input from being given focus #5262

luke-denton-ofx opened this issue Dec 4, 2024 · 0 comments

Comments

@luke-denton-ofx
Copy link

luke-denton-ofx commented Dec 4, 2024

Is your feature request related to a problem? Please describe.
On mobile, with the date picker set to render using a portal, when we tap the date field, the date picker modal will appear. However, in the background, the input gains focus, which on mobile means the soft keyboard gets displayed

Describe the solution you'd like
A way to disable the input from being focused while a date picker portal is being displayed, so that the soft keyboard on a mobile device doesn't appear

Describe alternatives you've considered
Creating a custom input. This is probably the route we're going to have to go in the meantime, but that just means a fair bit more overhead to work around a limitation we believe is in the library

Additional context

Can test with: https://reactdatepicker.com/#example-portal-by-id.
Notice that clicking the input will display the datepicker modal, but it will also show up the soft keyboard

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