You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
When entering any text inside the search bar, the search page re-renders and focus is removed from the search bar.
What should have happened:
When entering any text, it should keep focus so that you can continue entering your search text. This is a render issue, most likely a variable/function introduced in one of our recent PRs that caused this issue.
The issue is caused by the removal of the autoFocus property in this recent commit. Without that property, upon entering a character, our onChange event handler will cause a useEffect re-render from our SearchProvider, thus, the search page itself will be rendered again and the search input text field loses focus.
The text was updated successfully, but these errors were encountered:
What happened:
When entering any text inside the search bar, the search page re-renders and focus is removed from the search bar.
What should have happened:
When entering any text, it should keep focus so that you can continue entering your search text. This is a render issue, most likely a variable/function introduced in one of our recent PRs that caused this issue.
The issue is caused by the removal of the
autoFocus
property in this recent commit. Without that property, upon entering a character, ouronChange
event handler will cause a useEffect re-render from our SearchProvider, thus, the search page itself will be rendered again and the search input text field loses focus.The text was updated successfully, but these errors were encountered: