diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-10-18 15:39:20 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-10-19 00:27:51 +0200 |
commit | 7b9c810b9ac450d826b6fa0c3d35377178b7e3b3 (patch) | |
tree | 9daf1282e4142efcb94fb94415839cb1e2851cb5 /ui | |
parent | b99f8258bf5e8c427cb7c0046fa5ceaa68871eef (diff) | |
download | jquery-ui-7b9c810b9ac450d826b6fa0c3d35377178b7e3b3.tar.gz jquery-ui-7b9c810b9ac450d826b6fa0c3d35377178b7e3b3.zip |
Autocomplete: Append liveRegion to body to support detached init. Fixes #9590 - Dynamically adding input field breaks auto-complete's accessibility for screen readers
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index d1a3c252d..2b803b62f 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -294,7 +294,7 @@ $.widget( "ui.autocomplete", { "aria-live": "polite" }) .addClass( "ui-helper-hidden-accessible" ) - .insertBefore( this.element ); + .appendTo( this.document[ 0 ].body ); // turning off autocomplete prevents the browser from remembering the // value when navigating through history, so we re-enable autocomplete |