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

Custom Prop for `.bm-item` tabIndex #315

Closed gyto closed 5 years ago

gyto commented 5 years ago

I just started using this library and I mention that the first element of the .bm-item-list apply a tabIndex to the first child if .bm-item when the menu is open to 1. Is it possible to overwrite this when the menu is open? I am passing a single Node and I don't need autofocus every time I open the menu.

negomi commented 5 years ago

@GYTO thanks for the suggestion, just added the disableAutoFocus prop in v2.6.6 https://github.com/negomi/react-burger-menu#focusing-the-first-menu-item

gyto commented 5 years ago

@negomi thanks, works great!