selectmenu not usable in dialog?

selectmenu not usable in dialog?

Using a form in a jquery-ui dialog box, setting a select to a selectmenu results in the options being shown outside of the dialog. Is there a way around this, or is this a bug?