diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-02-25 15:36:08 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-02-25 15:36:08 -0500 |
commit | d5d3a745b00dd476195cf25b35cc02f3bc31f814 (patch) | |
tree | 20a029903c7264eb68832527ba4513e5820830b2 /ui/jquery.ui.autocomplete.js | |
parent | bcae4fb9f1d84e0d0e6e7afb11002b28e5dc5ba8 (diff) | |
download | jquery-ui-d5d3a745b00dd476195cf25b35cc02f3bc31f814.tar.gz jquery-ui-d5d3a745b00dd476195cf25b35cc02f3bc31f814.zip |
Autocomplete: Set isNewMenu flag on every suggestion. Fixes #9118 - Autocomplete: Mouse auto-highlights option in Firefox.
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 1b0f2138f..b3a05da0b 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -234,7 +234,8 @@ $.widget( "ui.autocomplete", { } }, menufocus: function( event, ui ) { - // #7024 - Prevent accidental activation of menu items in Firefox + // support: Firefox + // Prevent accidental activation of menu items in Firefox (#7024 #9118) if ( this.isNewMenu ) { this.isNewMenu = false; if ( event.originalEvent && /^mouse/.test( event.originalEvent.type ) ) { @@ -490,6 +491,7 @@ $.widget( "ui.autocomplete", { _suggest: function( items ) { var ul = this.menu.element.empty(); this._renderMenu( ul, items ); + this.isNewMenu = true; this.menu.refresh(); // size and position menu |