mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Autocomplete: Use .ui-front instead of .zIndex() for the suggestions menu.
This commit is contained in:
parent
7a49ee4cd3
commit
7d5fe02dd9
7
ui/jquery.ui.autocomplete.js
vendored
7
ui/jquery.ui.autocomplete.js
vendored
@ -192,7 +192,7 @@ $.widget( "ui.autocomplete", {
|
|||||||
|
|
||||||
this._initSource();
|
this._initSource();
|
||||||
this.menu = $( "<ul>" )
|
this.menu = $( "<ul>" )
|
||||||
.addClass( "ui-autocomplete" )
|
.addClass( "ui-autocomplete ui-front" )
|
||||||
.appendTo( this._appendTo() )
|
.appendTo( this._appendTo() )
|
||||||
.menu({
|
.menu({
|
||||||
// custom key handling for now
|
// custom key handling for now
|
||||||
@ -200,7 +200,6 @@ $.widget( "ui.autocomplete", {
|
|||||||
// disable ARIA support, the live region takes care of that
|
// disable ARIA support, the live region takes care of that
|
||||||
role: null
|
role: null
|
||||||
})
|
})
|
||||||
.zIndex( this.element.zIndex() + 1 )
|
|
||||||
.hide()
|
.hide()
|
||||||
.data( "ui-menu" );
|
.data( "ui-menu" );
|
||||||
|
|
||||||
@ -489,9 +488,7 @@ $.widget( "ui.autocomplete", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_suggest: function( items ) {
|
_suggest: function( items ) {
|
||||||
var ul = this.menu.element
|
var ul = this.menu.element.empty();
|
||||||
.empty()
|
|
||||||
.zIndex( this.element.zIndex() + 1 );
|
|
||||||
this._renderMenu( ul, items );
|
this._renderMenu( ul, items );
|
||||||
this.menu.refresh();
|
this.menu.refresh();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user