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

Set overflow only if html/bodyClassName not set #302

Closed richardxia closed 5 years ago

richardxia commented 5 years ago

Fixes https://github.com/negomi/react-burger-menu/issues/268

Let me know if this is what you were thinking of in https://github.com/negomi/react-burger-menu/issues/268. I added a new prop named htmlClassName with the same behavior as bodyClassName, and I changed the logic so that it no longer sets overflow-x on the html or body elements if the respective custom class name prop is passed in.

negomi commented 5 years ago

Hi @richardxia, this looks great, thanks for your help!

richardxia commented 5 years ago

Thanks!