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 @@ ...@@ -558,6 +558,11 @@
558 out = 'Unsupported field type: ' + nodeName; 558 out = 'Unsupported field type: ' + nodeName;
559 break; 559 break;
560 } 560 }
561 // firing the `change` event
562 var changeEvent = document.createEvent("HTMLEvents");
563 changeEvent.initEvent('change', true, true);
564 field.dispatchEvent(changeEvent);
565 // blur the field
561 try { 566 try {
562 field.blur(); 567 field.blur();
563 } catch (err) { 568 } catch (err) {
......