mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Selectmenu: improve option appendTo handling in appendTo method
This commit is contained in:
parent
2845d38d40
commit
d1350f9f11
2
ui/jquery.ui.selectmenu.js
vendored
2
ui/jquery.ui.selectmenu.js
vendored
@ -401,7 +401,7 @@ $.widget( "ui.selectmenu", {
|
||||
this._super( key, value );
|
||||
|
||||
if ( key === "appendTo" ) {
|
||||
this.menuWrap.appendTo( $( value || "body", this.element[ 0 ].ownerDocument )[ 0 ] );
|
||||
this.menuWrap.appendTo( this.document.find( value || "body" )[0] );
|
||||
}
|
||||
if ( key === "disabled" ) {
|
||||
this.menu.menu( "option", "disabled", value );
|
||||
|
Loading…
Reference in New Issue
Block a user