Envoie d'un event change sur les input

Signed-off-by: Florian Bouillon <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2020-07-22 17:12:08 +02:00
parent c8d71bb516
commit a2edf678e6

View File

@ -242,6 +242,9 @@ export default class FormManager {
}
const input = this.inputs[name]
input.setValue(value)
event = document.createEvent("HTMLEvents");
event.initEvent("change", true, true);
input.element.dispatchEvent(event);
return this
}