Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kurttheviking opened this issue Apr 26, 2017 · 0 comments

Comments

@kurttheviking
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant