Fix tab completion not updating model
This commit is contained in:
parent
c369f0fdb7
commit
c6262a36e6
@ -217,6 +217,9 @@ function enableAutocomplete(inputRef) {
|
|||||||
|
|
||||||
input.val(text.substr(0, position) + newMatch);
|
input.val(text.substr(0, position) + newMatch);
|
||||||
|
|
||||||
|
// Propagate change to Vue model
|
||||||
|
input.get(0).dispatchEvent(new Event("input"));
|
||||||
|
|
||||||
lastMatch = newMatch;
|
lastMatch = newMatch;
|
||||||
tabCount++;
|
tabCount++;
|
||||||
}, "keydown");
|
}, "keydown");
|
||||||
|
Loading…
Reference in New Issue
Block a user