So auslösen Sie das Eingabeereignis in 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);
inputField.dispatchEvent(new Event("input"))