primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
7.01k stars 1.06k forks source link

Menu: Closes when using Tab key #6247

Closed mpressmar closed 7 months ago

mpressmar commented 8 months ago

Describe the bug

To be accessible it should be possible to navigate in a Menu using the Tab key. Whenever tab (or shift+tab) is used to navigate in a menu, the menu closes unexpectedly.

Tabbing behaviour was fine in 10.2.1 and is broken since 10.3.0.

The bug can be reproduced in the component showcase of PrimeReact.

Reproducer

No response

PrimeReact version

10.3.0

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

Expected behavior

The Menu should not close.

sja-cslab commented 7 months ago

Isn't that exactly whats described here? image

melloware commented 7 months ago

Agree with @sja-cslab this is "By Design" and meets the ARIA accessibility guidelines.