Como acionar o evento de entrada no JavaScript
var event = new Event('input', {
bubbles: true,
cancelable: true,
});
element.dispatchEvent(event);
Better Bug
var event = new Event('input', {
bubbles: true,
cancelable: true,
});
element.dispatchEvent(event);