This is a migrated thread and some comments may be shown as answers.

Close menu on item click is causing an issue with hovering

1 Answer 16 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Javier
Top achievements
Rank 1
Javier asked on 13 Oct 2011, 03:49 PM
I looked around on the forums to find a way to close the menu on an item click and found that I could add a handler to the itemclicked event and use send.closer().

Which does the job, but has a side effect.  When I close the menu it now shows when I hover over the menu, which is set to click to open.
However, when I click the menu it goes back to normal and it works fine again...until I click a menu item again.

Then hover is activated again.

any advice?

1 Answer, 1 is accepted

Sort by
0
Javier
Top achievements
Rank 1
answered on 13 Oct 2011, 04:14 PM
Got it.

I had to add this line.

sender.set_clicked(false);
Tags
Menu
Asked by
Javier
Top achievements
Rank 1
Answers by
Javier
Top achievements
Rank 1
Share this question
or