selectmenu inconsistency #7195

Closed
mdgross opened this Issue Feb 28, 2014 · 4 comments

Comments

Projects
None yet
2 participants

mdgross commented Feb 28, 2014

A selectmenu with data-native-menu="false" uses a popup to display smaller menus. The data-overlay-theme property specifies the theme of the selectmenu popup itself. However, when using an actual popup the data-overlay-theme property specifies the theme of the background. Additionally, there is no way to specify the background theme of the selectmenu popup.

Example: http://jsfiddle.net/3nUG7/embedded/result/

Contributor

gabrielschulhof commented Feb 28, 2014

@mdgross

#6975 2: The Revenge Of The Popup

The popup created by the selectmenu gets an ID that's derived from the selectmenu's own ID and has the following pattern: <selectmenuId>-listbox.

Thus, you can hook up like this: $( "#<selectmenuId>-listbox" ).on( "popupafteropen", function() { /* ... */ });

mdgross commented Feb 28, 2014

@gabrielschulhof

Thank you for this. Could you please provide a similar example which demonstrates how to set the background (overlay) to theme "b" on the selectmenu popup? I would like the result to be similar for both examples I have provided.

gabrielschulhof self-assigned this Feb 28, 2014

gabrielschulhof added this to the 1.4.3 milestone Feb 28, 2014

Contributor

gabrielschulhof commented Mar 1, 2014

@mdgross In http://jsbin.com/IFolanOW/312 it waits for the selectmenu to be created, and then it sets the popup's overlayTheme option to "b".

@gabrielschulhof gabrielschulhof added a commit that referenced this issue Mar 12, 2014

@gabrielschulhof gabrielschulhof Selectmenu: Correctly pass theme and overlayTheme to popup
Closes gh-7196
Fixes gh-7195

(cherry picked from commit 4434822)
08cc012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment