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 the scroll to a discussion sub-thread #1206

Merged
merged 1 commit into from Oct 10, 2017

Conversation

abulte
Copy link
Contributor

@abulte abulte commented Oct 10, 2017

I still have a problem on my local env (when page finishes loading, scroll to top of page) but at least the JS error is fixed by this PR.

@abulte abulte requested a review from a team October 10, 2017 13:25
@@ -136,7 +136,7 @@ export default {
this.detailed = true;
if (index) {
this.$nextTick(() => {
this.$scrollTo(`#${discussionIdAttr}-${index}`);
this.$scrollTo(`#${this.discussionIdAttr}-${index}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A further improvement would be to have an index parameter in the computed.discussionIdAttr to avoid adding it manually everywhere in the page.

@abulte abulte merged commit 867300b into opendatateam:master Oct 10, 2017
@abulte abulte deleted the fix/sub-discussion-scroll branch October 10, 2017 14:13
abulte added a commit to abulte/udata that referenced this pull request Oct 18, 2017
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.

None yet

2 participants