From eb13525fbe44d3672918a3ae02728fb45c9dc108 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 23 Mar 2015 19:11:37 -0400 Subject: [PATCH] All: Include native dialogs in appendTo logic (ui-front walking) Ref #10739 Ref gh-1517 (cherry picked from commit dc6703756d388b1f49be0637473a8d55b5ce9270) --- ui/autocomplete.js | 2 +- ui/selectmenu.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/autocomplete.js b/ui/autocomplete.js index 4a35704fe..128bbf88f 100644 --- a/ui/autocomplete.js +++ b/ui/autocomplete.js @@ -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 ) { diff --git a/ui/selectmenu.js b/ui/selectmenu.js index 571ac9894..524fa923b 100644 --- a/ui/selectmenu.js +++ b/ui/selectmenu.js @@ -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 ) { -- 2.39.5