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]);
|
var caretPosition = Discourse.Utilities.caretPosition(me[0]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue