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

Search icon click doesn't focus input field ( Date Picker with Custom Input) #5230

Open
manav-optimas opened this issue Nov 15, 2024 · 0 comments

Comments

@manav-optimas
Copy link

manav-optimas commented Nov 15, 2024

Describe the bug
When clicking the Search icon, the input field doesn't automatically gain focus. This requires the user to click twice – once on the icon and again on the input field itself – to start typing.

I am using a ref for the input field but it still does not focus automatically.

To Reproduce

Please check with CodeSandbox

Steps to reproduce the behavior:

  1. Click on the Search icon.
  2. Notice that the input field does not automatically gain focus.
  3. You have to manually click in the input field to start typing.

Expected behavior
Clicking the Search icon should automatically focus the input field so the user can start typing immediately without an additional click.

Additional context
v.7.5.0

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