Skip to main content

Search and Top Navigation

#15328 new bug ()

Opened March 07, 2019 01:27AM UTC

Last modified March 07, 2019 04:56AM UTC

Re-opening selectmenu programatically is triggering the select event undesirably

Reported by: Ian-Y Owned by:
Priority: minor Milestone: none
Component: ui.selectmenu Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:

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:

1. Move mouse cursor onto the selectmenu button, and the selecetmenu will open automatically.

2. Move mouse cursor onto random options.

3. Move mouse cursor out of the selecemenu, and the selectmenu will close automatically.

4. 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.

Attachments (0)
Change History (2)

Changed March 07, 2019 01:29AM UTC by Ian-Y comment:1

Please help change the component to ui.selectmenu. Thanks. I forgot to do that.

Changed March 07, 2019 04:56AM UTC by rjollos comment:2

component: ui.coreui.selectmenu