Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Conversation

@bvaughn
Copy link
Collaborator

@bvaughn bvaughn commented Dec 2, 2016

This line in ReactART causes a bug that will ignore updated event handlers for a given event type once set (eg if you set onClick={handler1} and then later set onClick={handler2}, the first handler will continue to receive events).

This PR fixes that issue by using the intended handleEvent proxy method.. I've added unit test coverage as well.

Note that this PR partially overlaps with PR #105 since I had to patch the imports (eg react/lib to react-dom/lib) and multi-child mixin (eg ReactMultiChild to ReactMultiChild.Mixin).

This bug caused updated handlers to be ignored once set. The fix is simple and I've added unit test coverage as well
@bvaughn bvaughn merged commit 2d53294 into reactjs:master Dec 6, 2016
@bvaughn bvaughn deleted the event-handler-bugfix branch December 6, 2016 22:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant