Open roccotripaldi opened 5 years ago
Does this seem like an issue in the core component rather than at our end?
I suppose it still is navigatable with Enter key?
To be resolved first if this toggle is redundant: https://github.com/Automattic/wp-calypso/issues/31183
The same component in the gutenberg sidebar does not demonstrate this same behaviour, so I think it might be our implementation of it. Just trying to understand why focus is lost.
It looks to be caused by a re-render. The toggle is part of the UI that get re-rendered between the two states.
As reported by @eduardozulian
What I expected: to navigate using the tab key and quickly toggle between Open and Closed with my space bar
What happened instead: once I hit space, the toggle loses its focus and I’m not sure where am I anymore. I have to hit tab for the second time in order to see the focus on the toggle again.
https://cld.wthms.co/0kAy3w