Bug Tracker

Changeset 4096

Show
Ignore:
Timestamp:
12/10/07 21:11:20 (1 year ago)
Author:
joern.zaefferer
Message:

fix phantom values and error when blanking a field and tabbing out of it

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/autocomplete/jquery.autocomplete.js

    r3917 r4096  
    835835        }, 
    836836        selected: function() { 
    837             return listItems && $.data(listItems.filter("." + CLASSES.ACTIVE)[0], "ac_data"); 
     837            var selected = listItems && listItems.filter("." + CLASSES.ACTIVE).removeClass(); 
     838            return selected && selected.length && $.data(selected[0], "ac_data"); 
    838839        }, 
    839840        unbind: function() {