Ticket #7579 (closed bug: fixed)
autocomplete overwrites input erroneously when user hits ESC before timeout expires
|Reported by:||efoster||Owned by:|
See http://jsbin.com/enulud/4 for an example.
As pointed out by gf3 in #jquery, the problem appears to be at:
self.term is being used even if it is not set and/or is outdated.
Also has the problem, but a different version of it:
- Enter 'wh'
- Wait for the autocomplete list to show up
- type 'i', then immediately press Escape
- See that the text input has "wh" rather than "whi"
Possible solution: Really, the only time that the text should be replaced is after the user has arrowed down into one of the autocomplete results.
could set self._value_orig before it replaces it and the escape handler could replace self._value with self._value_orig if it exists.