Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

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

Open
eeschiavo opened this issue Sep 27, 2018 · 0 comments
Open

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

eeschiavo opened this issue Sep 27, 2018 · 0 comments

Comments

@eeschiavo
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant