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

FIX: makes highlighting last viewed topic more resilient #8624

Merged
merged 1 commit into from
Dec 30, 2019

Conversation

jjaffeux
Copy link
Contributor

highlight was called from didInsertElement which technically doesn't ensure the list is rendered. By wrapping the highlighting code in afterRender we ensure it works more consistently.

`highlight` was called from `didInsertElement` which technically doesn't ensure the list is rendered. By wrapping the highlighting code in `afterRender` we ensure it works more consistently.
@discoursebot
Copy link

You've signed the CLA, jjaffeux. Thank you! This pull request is ready for review.

@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/ios-back-goes-to-wrong-position-in-topics-list/136770/8

@SamSaffron
Copy link
Member

I see, this looks safe to me, feel free to merge! 👍

@SamSaffron SamSaffron added the 👍 OP to merge PR author can go ahead and merge! label Dec 30, 2019
@jjaffeux jjaffeux merged commit 6fa5725 into discourse:master Dec 30, 2019
@jjaffeux jjaffeux deleted the resilient-back-topic branch December 30, 2019 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👍 OP to merge PR author can go ahead and merge!
Development

Successfully merging this pull request may close these issues.

3 participants