Opened 4 years ago
Last modified 4 years ago
#15328 new bug
Re-opening selectmenu programatically is triggering the select event undesirably
Reported by: | Ian Yang | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.selectmenu | Version: | 1.12.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I'm use mouseenter
and mouseleave
events on the container element to trigger the opening and closing of selectmenu. But somehow the re-opening is triggering the select
event undesirably.
I don't expect the select
event to be triggered when the selecemenu is re-opened.
Here is how to reproduce the issue:
- Move mouse cursor onto the selectmenu button, and the selecetmenu will open automatically.
- Move mouse cursor onto random options.
- Move mouse cursor out of the selecemenu, and the selectmenu will close automatically.
- Repeat step 1, and the select event is being triggered undesirably.
Here is a jsFiddle demo.
P.S. The use of class ui-front
on the container element is to make the selectmenu be appended into the container element automatically when created.
Change History (2)
comment:1 Changed 4 years ago by
comment:2 Changed 4 years ago by
Component: | ui.core → ui.selectmenu |
---|
Note: See
TracTickets for help on using
tickets.
Please help change the component to ui.selectmenu. Thanks. I forgot to do that.