Fire .change event when value in awesomplete input changes
Right now awesomplete fires an awesomplete-selectcomplete event whenever a selection is complete. But I often may not care about how the value of the input changed but only that it did. If the element also fired a normal change event, then I could write my code without depending on whether the input is or is not using awesomplete.
Good point! We should also fire the input event if we do this.
In the meantime you can workaround by:
var input = document.getElementById('textInputCSSID'); input.addEventListener("awesomplete-selectcomplete", function(event) { var changeEvent = new Event('change'); input.dispatchEvent(changeEvent); });