Commit 29f9b957 29f9b9570d0a1f1bed6089de0703107b5911988c by Nicolas Perriault

fixes #154 - firing the change event after a field value has been set

1 parent 3695f3c2
......@@ -558,6 +558,11 @@
out = 'Unsupported field type: ' + nodeName;
break;
}
// firing the `change` event
var changeEvent = document.createEvent("HTMLEvents");
changeEvent.initEvent('change', true, true);
field.dispatchEvent(changeEvent);
// blur the field
try {
field.blur();
} catch (err) {
......