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

Bug - [SearchInput] - autoFocus attribute doesn't work as expected when using SearchInput Component

Open lujun2 opened this issue 1 year ago • 1 comments

Describe the problem

SearchInput cannot gain focus when autoFocus attribute set

How do you reproduce the problem?

SearchInput with autoFocus attribute cannot gain focus,

but TextInput with autoFocus can work correctly

Expected behavior

SearchInput should gain focus after page loaded

Is this issue blocking you?

no, just for user experience

Screenshots

What is your environment?

  • OS: [macOS]
  • Browser [Chrome Version 127.0.6533.122 (Official Build) (x86_64)]
  • Patternfly Version [5.4.0]

What is your product and what release date are you targeting?

Any other information?

lujun2 avatar Aug 28 '24 07:08 lujun2

Let's add a prop to spread props to the input.

tlabaj avatar Sep 19 '24 15:09 tlabaj

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Jan 19 '25 11:01 github-actions[bot]