]> source.dussan.org Git - jquery-ui.git/commitdiff
All: Include native dialogs in appendTo logic (ui-front walking)
authorScott González <scott.gonzalez@gmail.com>
Mon, 23 Mar 2015 23:11:37 +0000 (19:11 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 9 Jun 2016 17:21:20 +0000 (13:21 -0400)
Ref #10739
Ref gh-1517

(cherry picked from commit dc6703756d388b1f49be0637473a8d55b5ce9270)

ui/autocomplete.js
ui/selectmenu.js

index 4a35704fe17997cf93740c87943ed3e34d9f4f5b..128bbf88f24f1089bd37372c5a211ee93c00c3df 100644 (file)
@@ -359,7 +359,7 @@ $.widget( "ui.autocomplete", {
                }
 
                if ( !element || !element[ 0 ] ) {
-                       element = this.element.closest( ".ui-front" );
+                       element = this.element.closest( ".ui-front, dialog" );
                }
 
                if ( !element.length ) {
index 571ac9894cf8fc6eb7fcc4c8376f1d73953b60ca..524fa923b04783c4cf7a7b0f3a14a16237cee46f 100644 (file)
@@ -541,7 +541,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 ) {