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

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

Open manav-optimas opened this issue 1 year ago • 1 comments

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

manav-optimas avatar Nov 15 '24 08:11 manav-optimas

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 15 '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]