Opened 3 years ago

Last modified 2 years ago

#15115 open bug

selectmenuselect fires twice in certain scenario

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

Description

After setting up a selectmenu with a default set:

Click the menu open, Click outside the menu (menu loses focus and closes), Click the menu open again, Click the item that is currently selected.

This causes two selectmenuselect events to fire.

(This only happens on even number of menu opens and only when the already selected item is selected again.)

Change History (1)

comment:1 Changed 2 years ago by Scott González

Status: newopen

The description isn't quite accurate, but I haven't been able to figure out what specifically is causing this. You can just keep opening and closing (via clicking outside) and you'll eventually see select events being triggered, even though you've never interacted with the menu itself, just the button.

http://jsbin.com/cubulifice/1/edit?html,js,output

Note: See TracTickets for help on using tickets.