Opened 3 years ago

Closed 3 years ago

#15187 closed bug (notabug)

Triggering an event manually is not possible with selectmenu

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

Description

See the example below.

https://jsfiddle.net/abxr87rk/5/

If an onchange event is created in selectmenu with the "constructor" method, trigerring an event manually will never be caught by this event. If the event is created the 'on' method, this event will be caught.

Is this behavious intended ? It seems tricky and buggy to me.

Change History (1)

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

Resolution: notabug
Status: newclosed

The change option is not a handler for the change event. It is a handler for the selectmenuchange event. Please see the documentation for more details.

Note: See TracTickets for help on using tickets.