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.04k stars 582 forks source link

Custom overlay click function #387

Closed badtant closed 4 years ago

badtant commented 4 years ago

Hi,

I'm using the meny with my own state and would like to request an option to use a custom overlay click function.

I tried using the onStateChange function but that fires all the time and I only want to "catch" when the state changes without me handling it. So I figured it would be much easier if I could handle the overlay click myself also. Right now I have to disable it.

Thanks

negomi commented 4 years ago

Fixed by #388

Change available in 2.7.0