Fire change event after completion to allow Angular to update its state

master
Nikola Forró 4 years ago
parent 59007dd4da
commit c46d0139c1

@ -64,6 +64,8 @@ class TabCompletion {
' ' + input.value.substring(input.selectionStart);
input.selectionStart = start + this[`suggestion_${symbol}`].length + 2;
input.selectionEnd = input.selectionStart;
input.dispatchEvent(new Event('change', {'bubbles': true}));
}
}

Loading…
Cancel
Save