Skip to content

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

Open

Description

@kurttheviking

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions