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.
This commit is contained in:
Roman Rizzi 2020-12-31 15:40:42 -03:00 committed by GitHub
parent 836cbfe7ae
commit 024d91410d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@
<div id="list-area">
{{#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}}