bean
bean copied to clipboard
Is it possible to listen to propertychange events from INPUT elements?
Given the following:
function callback(e) {
console.log('callback', e);
}
document.querySelectorAll('input').forEach(function bindListener(el) {
bean.on(el, 'propertychange', callback);
});
...It seems that the callback
is never invoked. As I dug through bean's logic line-by-line, I noticed this event was subject to an early return: https://github.com/fat/bean/blob/master/bean.js#L422
Is it possible to listen to propertychange
events? Or, am I doing something wrong in this particular case? I am dealing with a legacy browser that does not support input
events.
Thanks in advance!