Opened 8 years ago
Closed 8 years ago
#11434 closed bug (notabug)
Selectmenu shows behind form dialog, if initialized before dialog gets initialized
Reported by: | master-of-magic | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.selectmenu | Version: | 1.11.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If you initialize a select menu within a form dialog before you initialize the dialog object, the select options will be shown behind the dialog and are [partially] invisible.
A buggy code:
$("#month").selectmenu({ width: 300 }); // select menu within the dialog form var dialog = $("#dialog-form").dialog(...);
Reproduction:
http://jsfiddle.net/4dd62ukv/1/
... just move line 89 in javascript to line 62, run the example and try to open the month-selectmenu
Note: See
TracTickets for help on using
tickets.
Yup, that's how the stacking logic works. Either initialize in the proper nesting order or be explicit with the
appendTo
option.