react-burger-menu icon indicating copy to clipboard operation
react-burger-menu copied to clipboard

Custom Prop for `.bm-item` tabIndex

Open gyto opened this issue 7 years ago • 2 comments

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.

gyto avatar Mar 29 '19 19:03 gyto

@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

negomi avatar Mar 31 '19 01:03 negomi

@negomi thanks, works great!

gyto avatar Apr 01 '19 21:04 gyto