bean icon indicating copy to clipboard operation
bean copied to clipboard

Is it possible to listen to propertychange events from INPUT elements?

Open kurttheviking opened this issue 7 years ago • 0 comments

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!

kurttheviking avatar Apr 26 '17 23:04 kurttheviking