mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:04:11 +08:00
FIX: Autocomplete retriggering when term is blank on keyup.
This commit is contained in:
parent
272747f2b9
commit
2db42e970d
|
@ -322,7 +322,8 @@ export default function(options) {
|
|||
}
|
||||
};
|
||||
|
||||
$(this).on('keyup.autocomplete', function() {
|
||||
$(this).on('keyup.autocomplete', function(e) {
|
||||
if ([keys.esc, keys.enter].indexOf(e.which) !== -1) return true;
|
||||
|
||||
var caretPosition = Discourse.Utilities.caretPosition(me[0]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user