]> 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, 26 Mar 2015 11:35:20 +0000 (07:35 -0400)
Ref #10739
Ref gh-1517

ui/autocomplete.js
ui/selectmenu.js

index 209fa71ae99fbe6d150edc40570c023cf5c89c17..a3db1a9f84a685799a8a5b996a290f2b24dffe0c 100644 (file)
@@ -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 ) {
index 74e142d33d431714d78c007191e801f47cabde2d..c52f6e4525179b5067f201cffd641829d96a721a 100644 (file)
@@ -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 ) {