https://bugzilla.wikimedia.org/show_bug.cgi?id=63094

            Bug ID: 63094
           Summary: OoUiMenuWidget.off('select') disables default behavior
           Product: OOjs UI
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: General
          Assignee: jforrester+veteambztick...@wikimedia.org
          Reporter: gti...@wikimedia.org
                CC: jforres...@wikimedia.org
       Web browser: ---
   Mobile Platform: ---

Steps to reproduce:
1. load a page with an OoUiInlineMenuWidget (I used the one in MultimediaViewer
master, behind the "Use this file" button)
2. get the menu widget behind it, run off('select') (with the current version
of  MultimediaViewer, this can be done from the console via
mw.mmv.bootstrap.viewer.ui.panel.fileReuse.tabs.embed.embedWtSizeSwitch.getMenu().off('select')
)

Expected result: any custom handlers are removed, but default behavior is
unaffected

Actual result: default behavior is disabled - the selection (the content of the
.oo-ui-inlineMenuWidget-handle class) does not change when selecting an option.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to