Opened 5 years ago

Closed 5 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

Change History (1)

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

Resolution: notabug
Status: newclosed

Yup, that's how the stacking logic works. Either initialize in the proper nesting order or be explicit with the appendTo option.

Note: See TracTickets for help on using tickets.