FIX: onScroll method was not defined on mobile discovery (#8672)

This commit is contained in:
Joffrey JAFFEUX 2020-01-07 11:59:58 +01:00 committed by GitHub
parent 5b75b8c135
commit 7f00cefcac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
{{#discovery-topics-list model=model refresh=(action "refresh") incomingCount=topicTrackingState.incomingCount}}
{{#discovery-topics-list model=model refresh=(action "refresh") incomingCount=topicTrackingState.incomingCount as |discoveryTopicList|}}
{{log discoveryTopicList}}
{{#if top}}
<div class='top-lists'>
{{period-chooser period=period action=(action "changePeriod")}}
@ -22,6 +23,7 @@
expandGloballyPinned=expandGloballyPinned
expandAllPinned=expandAllPinned
scrollOnLoad=true
onScroll=discoveryTopicList.saveScrollPosition
category=category}}
{{/if}}
{{/discovery-topics-list}}