Closed h4m3d closed 1 year ago
Hey @h4m3d :wave:,
Thank you for opening an issue. We'll get back to you as soon as we can. Please, consider supporting us on Open Collective. We give a special attention to issues opened by backers.
If you use Reakit at work, you can also ask your company to sponsor us :heart:.
Thanks for reporting it @h4m3d!
This actually also happens on Chrome, but you need to press Space for a little longer.
I haven't tested it yet, but my guess is that we should move this to the onKeyUp
event:
https://github.com/reakit/reakit/blob/bf3fdfdfa511f8f09edf8f5c55ed691a9b592ad8/packages/reakit/src/Menu/MenuButton.ts#L96
This should be fixed in the latest version of @ariakit/react
.
š Bug report
Current behavior
Firefox automatically select first menu item on Space for opening menu. it actually occurs when we release Space.
Steps to reproduce the bug
with Firefox go to menu action example https://reakit.io/docs/menu/#menu-actions
Expected behavior
like chrome it must just open the menu and not select any item
Possible solutions
Environment
Please, run the command below inside your project directory.