From: Scott González Date: Mon, 23 Mar 2015 23:11:37 +0000 (-0400) Subject: All: Include native dialogs in appendTo logic (ui-front walking) X-Git-Tag: 1.12.0-beta.1~347 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc6703756d388b1f49be0637473a8d55b5ce9270;p=jquery-ui.git All: Include native dialogs in appendTo logic (ui-front walking) Ref #10739 Ref gh-1517 --- diff --git a/ui/autocomplete.js b/ui/autocomplete.js index 209fa71ae..a3db1a9f8 100644 --- a/ui/autocomplete.js +++ b/ui/autocomplete.js @@ -365,7 +365,7 @@ $.widget( "ui.autocomplete", { } if ( !element || !element[ 0 ] ) { - element = this.element.closest( ".ui-front" ); + element = this.element.closest( ".ui-front, dialog" ); } if ( !element.length ) { diff --git a/ui/selectmenu.js b/ui/selectmenu.js index 74e142d33..c52f6e452 100644 --- a/ui/selectmenu.js +++ b/ui/selectmenu.js @@ -586,7 +586,7 @@ return $.widget( "ui.selectmenu", { } if ( !element || !element[ 0 ] ) { - element = this.element.closest( ".ui-front" ); + element = this.element.closest( ".ui-front, dialog" ); } if ( !element.length ) {