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

Disable the events on the original button #243

Closed Asher978 closed 6 years ago

Asher978 commented 6 years ago

Hello,

So I using a custom React Element to show the icon. The custom icon is also handling the open/close of the draw menu. How i can turn off the events on the original button. They are both clashing with each other. <Menu left customBurgerIcon={<Hamburger openMobileNav={this.openMobileNav}/>} isOpen={isOpen} customCrossIcon={ false } >

Asher978 commented 6 years ago

Sorry about posting. I just figured it out

negomi commented 6 years ago

Hey @Asher978,

It sounds like your best option is to pass customBurgerIcon={false} and then just keep your Hamburger component separate from the menu.

Glad you figured it out :)

Asher978 commented 6 years ago

Sounds good. That’s exactly what I did.

Thanks for your reply

Ash

Sent from my iPhone

On May 1, 2018, at 11:51 PM, Imogen Wentworth notifications@github.com wrote:

Hey @Asher978,

It sounds like your best option is to pass customBurgerIcon={false} and then just keep your Hamburger component separate from the menu.

Glad you figured it out :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.