Closed popko closed 8 years ago
+1
I'm experiencing the same thing.
I consider it a bug as well. I will investigate when time permits.
I solved this by adding:
if ('createEvent' in document) {
var evt = document.createEvent('HTMLEvents');
evt.initEvent('input', true, true);
this.el.dispatchEvent(evt);
} else {
this.el.fireEvent('oninput');
}
to line 694 of merged source or https://github.com/firstopinion/formatter.js/blob/master/src/formatter.js#L317. Definitely just a temporary fix. It will work in IE8+.
@gmanley Thanks. This is solving the issue on using formatter.js in AngularJS.
Thanks @gmanley
Enabling formatter for example in an input element prevents to fire jQuery input event on that particular element. I consider this a bug.