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
Expected result:
After a selection is made, the focus should return back to the toggle.
Actual result:
Focus lands on whatever happens to be underneath the selected item.
Here's a screen recording of the bug.
downshiftjs_useSelect_bug.MP4
I attempted to mitigate this in my implementation by setting a ref on the toggle button and then sending the focus back to the toggle after a selection is made with variations of the following, but no such luck. At first I thought it was a problem with my implementation, but when I checked the example in the docs I found the problem reproducible on there as well.
Steps to reproduce:
Expected result:
After a selection is made, the focus should return back to the toggle.
Actual result:
Focus lands on whatever happens to be underneath the selected item.
Here's a screen recording of the bug.
downshiftjs_useSelect_bug.MP4
I attempted to mitigate this in my implementation by setting a ref on the toggle button and then sending the focus back to the toggle after a selection is made with variations of the following, but no such luck. At first I thought it was a problem with my implementation, but when I checked the example in the docs I found the problem reproducible on there as well.