negomi / react-burger-menu

:hamburger: An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations
http://negomi.github.io/react-burger-menu/
MIT License
5.05k stars 586 forks source link

Tab key closes menu #421

Closed tx-steven closed 3 years ago

tx-steven commented 3 years ago

Version 2.9.0 introduced some code that now always closes the menu if you press the tab key. If this is intentional, can we please at least get an opt out for this behavior since using tab is a very common way people navigate with keys. We have at least 3 projects that have broken because of this change.

Here is the line where this change was introduced for reference: https://github.com/negomi/react-burger-menu/blob/main/src/menuFactory.js#L287