react-metismenu icon indicating copy to clipboard operation
react-metismenu copied to clipboard

Not possible to know which item with sub-items was clicked

Open eeschiavo opened this issue 6 years ago • 0 comments

I would like to apply a css class to an item if it has sub items and when it's state is "open". I defined a custom CustomLink and, of corse, I can attach an "onClick" event inside it but the problem is when other elements are clicked my CustomLink instance doesn't get updates and I can not change it's internal state removing previous class. Any ideas?

The goal is to highlight a menu item when it's expanded.

Thanks

eeschiavo avatar Sep 27 '18 11:09 eeschiavo