Fix tab completion not updating model

This commit is contained in:
Pavel Djundik 2018-07-11 12:29:49 +03:00 committed by Pavel Djundik
parent c369f0fdb7
commit c6262a36e6

View File

@ -217,6 +217,9 @@ function enableAutocomplete(inputRef) {
input.val(text.substr(0, position) + newMatch);
// Propagate change to Vue model
input.get(0).dispatchEvent(new Event("input"));
lastMatch = newMatch;
tabCount++;
}, "keydown");