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

[BUGIFX] link-to active class applied when params change #16117

Merged
merged 1 commit into from
Jan 12, 2018

Conversation

jasonmit
Copy link
Member

@jasonmit jasonmit commented Jan 12, 2018

Original PR: #16060
(Sorry for not reusing original PR, github bug).

Prior to 2.18.0, the link-to component would recompute active/_active when attrs.params changed. It no longer behaves this way, this patch reverts back to the prior link-to behavior.

{{link-to 'some dynamic link' dynamicRoute}}

Changing dynamicRoute will not cause the link-to to recompute whether it's active or not.

/cc @thoov @rwjblue <3

@jasonmit jasonmit force-pushed the active-class-on-params-change branch from 1979022 to 1facdd0 Compare January 12, 2018 09:25
@jasonmit jasonmit force-pushed the active-class-on-params-change branch from 1facdd0 to 9b6c349 Compare January 12, 2018 10:08
@rwjblue
Copy link
Member

rwjblue commented Jan 12, 2018

I believe this will need to be pulled all the way down into release branch.

@rwjblue rwjblue merged commit 1e6357b into emberjs:master Jan 12, 2018
@rwjblue
Copy link
Member

rwjblue commented Jan 12, 2018

Thank you @jasonmit!

@jasonmit jasonmit deleted the active-class-on-params-change branch January 12, 2018 21:43
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

Successfully merging this pull request may close these issues.

2 participants