Opened 6 years ago
Closed 6 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.
Note: See
TracTickets for help on using
tickets.
The
change
option is not a handler for thechange
event. It is a handler for theselectmenuchange
event. Please see the documentation for more details.