Open lujun2 opened 1 month ago
Describe the problem
SearchInput cannot gain focus when autoFocus attribute set
autoFocus
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?
What is your product and what release date are you targeting?
Any other information?
Let's add a prop to spread props to the input.
Describe the problem
SearchInput cannot gain focus when
autoFocus
attribute setHow 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?
What is your product and what release date are you targeting?
Any other information?