diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-03-23 19:11:37 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-03-26 07:35:20 -0400 |
commit | dc6703756d388b1f49be0637473a8d55b5ce9270 (patch) | |
tree | 08d75ea3cba61106bcc36fdef3a1b0e8da56e8d4 /ui | |
parent | 8cf98798a58afb7197bce0d6ca1c5b658ae04011 (diff) | |
download | jquery-ui-dc6703756d388b1f49be0637473a8d55b5ce9270.tar.gz jquery-ui-dc6703756d388b1f49be0637473a8d55b5ce9270.zip |
All: Include native dialogs in appendTo logic (ui-front walking)
Ref #10739
Ref gh-1517
Diffstat (limited to 'ui')
-rw-r--r-- | ui/autocomplete.js | 2 | ||||
-rw-r--r-- | ui/selectmenu.js | 2 |
2 files changed, 2 insertions, 2 deletions
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 ) { |