diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-02-05 13:01:32 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-02-05 13:01:32 -0500 |
commit | 7d5fe02dd9e3af3ebbb4fcc3092045139b166c48 (patch) | |
tree | a1f94a9abfac4c96df0208f018ec08f4235e7368 /ui | |
parent | 7a49ee4cd3a59a11e8c65cb1974481d86e2fd4d7 (diff) | |
download | jquery-ui-7d5fe02dd9e3af3ebbb4fcc3092045139b166c48.tar.gz jquery-ui-7d5fe02dd9e3af3ebbb4fcc3092045139b166c48.zip |
Autocomplete: Use .ui-front instead of .zIndex() for the suggestions menu.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index f8470a8a1..1b0f2138f 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -192,7 +192,7 @@ $.widget( "ui.autocomplete", { this._initSource(); this.menu = $( "<ul>" ) - .addClass( "ui-autocomplete" ) + .addClass( "ui-autocomplete ui-front" ) .appendTo( this._appendTo() ) .menu({ // custom key handling for now @@ -200,7 +200,6 @@ $.widget( "ui.autocomplete", { // disable ARIA support, the live region takes care of that role: null }) - .zIndex( this.element.zIndex() + 1 ) .hide() .data( "ui-menu" ); @@ -489,9 +488,7 @@ $.widget( "ui.autocomplete", { }, _suggest: function( items ) { - var ul = this.menu.element - .empty() - .zIndex( this.element.zIndex() + 1 ); + var ul = this.menu.element.empty(); this._renderMenu( ul, items ); this.menu.refresh(); |