mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:43:54 -06:00
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:
parent
836cbfe7ae
commit
024d91410d
@ -47,7 +47,7 @@
|
|||||||
<div id="list-area">
|
<div id="list-area">
|
||||||
{{#unless loading}}
|
{{#unless loading}}
|
||||||
{{#if list.topics}}
|
{{#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}}
|
{{bulk-select-button selected=selected action=(action "refresh") category=category}}
|
||||||
{{topic-list
|
{{topic-list
|
||||||
topics=list.topics
|
topics=list.topics
|
||||||
@ -59,6 +59,7 @@
|
|||||||
order=order
|
order=order
|
||||||
ascending=ascending
|
ascending=ascending
|
||||||
changeSort=(action "changeSort")
|
changeSort=(action "changeSort")
|
||||||
|
onScroll=discoveryTopicList.saveScrollPosition
|
||||||
scrollOnLoad=true
|
scrollOnLoad=true
|
||||||
}}
|
}}
|
||||||
{{/discovery-topics-list}}
|
{{/discovery-topics-list}}
|
||||||
|
Loading…
Reference in New Issue
Block a user