kunukn / react-slide-toggle

React component re-implementation for jQuery.slideToggle feature
MIT License
42 stars 7 forks source link

make overflow on setCollapsibleElement togglable #9

Closed Nightliss closed 4 years ago

Nightliss commented 4 years ago

Hey @kunukn ,

would it be possible to add a prop to a component, same as noDisplayStyle, to control whether overflow: hidden should be added to collapsibleElement?

I'm rewriting an app which was written a more than year ago with previous version of this package and the above change breaks some components. I could of course overwrite it with !important but I'd rather avoid it :)

I hope making it togglable won't be an issue. Best Regards

kunukn commented 4 years ago

I have added the prop noOverflowHidden. When applied, then overflow hidden is not added to the collapsibleElement.

version 0.3.3.