Skip to content

Conversation

taion
Copy link
Contributor

@taion taion commented Oct 18, 2015

For consistency with React v0.14, don't prevent the transition if the onClick handler returns false.

Closes #2219

I added a basic test case to cover the default being prevented. Also reworded the IndexLink part of the upgrade guide slightly because it was a bit confusing - can split that out into a separate PR if desired though.

For consistency with React v0.14, don't prevent the transition if the
onClick handler returns false.
@knowbody
Copy link
Contributor

thanks @taion

knowbody added a commit that referenced this pull request Oct 18, 2015
[changed] Preventing transition from onClick
@knowbody knowbody merged commit c249318 into remix-run:master Oct 18, 2015
@taion taion deleted the Link-onClick branch October 18, 2015 21:18
@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
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.

2 participants