From 024d91410daab7e43629178544387e2746bbf86d Mon Sep 17 00:00:00 2001 From: Roman Rizzi Date: Thu, 31 Dec 2020 15:40:42 -0300 Subject: [PATCH] FIX: Correctly set scroll position when viewing a tag's topic list. (#11612) Follows up #11496. The scroll position was not updated when scrolling up. --- app/assets/javascripts/discourse/app/templates/tags/show.hbs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/templates/tags/show.hbs b/app/assets/javascripts/discourse/app/templates/tags/show.hbs index 3fa58ca55e7..f0d552250b1 100644 --- a/app/assets/javascripts/discourse/app/templates/tags/show.hbs +++ b/app/assets/javascripts/discourse/app/templates/tags/show.hbs @@ -47,7 +47,7 @@
{{#unless loading}} {{#if list.topics}} - {{#discovery-topics-list model=list refresh=(action "refresh")}} + {{#discovery-topics-list model=list refresh=(action "refresh") as |discoveryTopicList|}} {{bulk-select-button selected=selected action=(action "refresh") category=category}} {{topic-list topics=list.topics @@ -59,6 +59,7 @@ order=order ascending=ascending changeSort=(action "changeSort") + onScroll=discoveryTopicList.saveScrollPosition scrollOnLoad=true }} {{/discovery-topics-list}}