fortunar / react-sidemenu

React sidemenu component
57 stars 14 forks source link

Parents with children aren't calling onMenuItemClick #5

Closed vinicius5581 closed 7 years ago

vinicius5581 commented 7 years ago

It seems like only items without children are calling onMenuItemClick and passing the value property.

Is there a way to change this behavior and if not, are you considering implementing that?

Cheers

fortunar commented 7 years ago

In the new release a 'shouldTriggerClickOnParents' property can be supplied to SideMenu element which achieves what you proposed.