All: Include native dialogs in appendTo logic (ui-front walking)

Ref #10739
Ref gh-1517
This commit is contained in:
Scott González 2015-03-23 19:11:37 -04:00
parent 8cf98798a5
commit dc6703756d
2 changed files with 2 additions and 2 deletions

View File

@ -365,7 +365,7 @@ $.widget( "ui.autocomplete", {
} }
if ( !element || !element[ 0 ] ) { if ( !element || !element[ 0 ] ) {
element = this.element.closest( ".ui-front" ); element = this.element.closest( ".ui-front, dialog" );
} }
if ( !element.length ) { if ( !element.length ) {

View File

@ -586,7 +586,7 @@ return $.widget( "ui.selectmenu", {
} }
if ( !element || !element[ 0 ] ) { if ( !element || !element[ 0 ] ) {
element = this.element.closest( ".ui-front" ); element = this.element.closest( ".ui-front, dialog" );
} }
if ( !element.length ) { if ( !element.length ) {