fixes #154 - firing the change event after a field value has been set
Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -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) { | ... | ... |
-
Please register or sign in to post a comment