]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Use .ui-front instead of .zIndex() for the suggestions menu.
authorScott González <scott.gonzalez@gmail.com>
Tue, 5 Feb 2013 18:01:32 +0000 (13:01 -0500)
committerScott González <scott.gonzalez@gmail.com>
Tue, 5 Feb 2013 18:01:32 +0000 (13:01 -0500)
ui/jquery.ui.autocomplete.js

index f8470a8a140d007e20ed2228c6dd945e7b4d620d..1b0f2138f9467d3bda9bb3ceaa4677b646634cf3 100644 (file)
@@ -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();