Skip to content

normalized events for ie7/8 for checkboxes and radios fires bound events on propertychange #2352

Open
@DimitarChristoff

Description

@DimitarChristoff

check this fiddle:

http://jsfiddle.net/8VMQs/1/

basically, i'd expect when doing element.set('checked', true); the change event bound NOT to fire automatically.
observed: event fires.

i am trying to find a way to differentiate the event from a UI driven event (eg, one that is a result of a click) but there is nothing in it, it's just propertychange bubbling to change.

relevant bit: https://github.com/mootools/mootools-core/blob/master/Source/Element/Element.Event.js#L170-183

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/55897-normalized-events-for-ie7-8-for-checkboxes-and-radios-fires-bound-events-on-propertychange?utm_campaign=plugin&utm_content=tracker%2F22067&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F22067&utm_medium=issues&utm_source=github).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions