mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Fixed: Restore scroll position for collections and discover on go back
This commit is contained in:
@@ -224,6 +224,7 @@ class Collection extends Component {
|
||||
view,
|
||||
onSortSelect,
|
||||
onFilterSelect,
|
||||
initialScrollTop,
|
||||
onScroll,
|
||||
isRefreshingCollections,
|
||||
isSaving,
|
||||
@@ -306,6 +307,7 @@ class Collection extends Component {
|
||||
ref={this.scrollerRef}
|
||||
className={styles.contentBody}
|
||||
innerClassName={styles[`${view}InnerContentBody`]}
|
||||
onScroll={onScroll}
|
||||
>
|
||||
{
|
||||
isFetching && !isPopulated &&
|
||||
@@ -334,6 +336,7 @@ class Collection extends Component {
|
||||
onSelectedChange={this.onSelectedChange}
|
||||
onSelectAllChange={this.onSelectAllChange}
|
||||
selectedState={selectedState}
|
||||
scrollTop={initialScrollTop}
|
||||
{...otherProps}
|
||||
/>
|
||||
</div>
|
||||
@@ -374,6 +377,7 @@ class Collection extends Component {
|
||||
}
|
||||
|
||||
Collection.propTypes = {
|
||||
initialScrollTop: PropTypes.number,
|
||||
isFetching: PropTypes.bool.isRequired,
|
||||
isPopulated: PropTypes.bool.isRequired,
|
||||
isSaving: PropTypes.bool.isRequired,
|
||||
|
||||
@@ -259,6 +259,7 @@ class DiscoverMovie extends Component {
|
||||
onSortSelect,
|
||||
onFilterSelect,
|
||||
onViewSelect,
|
||||
initialScrollTop,
|
||||
onScroll,
|
||||
onAddMoviesPress,
|
||||
isSyncingLists,
|
||||
@@ -369,6 +370,7 @@ class DiscoverMovie extends Component {
|
||||
ref={this.scrollerRef}
|
||||
className={styles.contentBody}
|
||||
innerClassName={styles[`${view}InnerContentBody`]}
|
||||
onScroll={onScroll}
|
||||
>
|
||||
{
|
||||
isFetching && !isPopulated &&
|
||||
@@ -397,6 +399,7 @@ class DiscoverMovie extends Component {
|
||||
onSelectedChange={this.onSelectedChange}
|
||||
onSelectAllChange={this.onSelectAllChange}
|
||||
selectedState={selectedState}
|
||||
scrollTop={initialScrollTop}
|
||||
{...otherProps}
|
||||
/>
|
||||
</div>
|
||||
@@ -441,6 +444,7 @@ class DiscoverMovie extends Component {
|
||||
}
|
||||
|
||||
DiscoverMovie.propTypes = {
|
||||
initialScrollTop: PropTypes.number,
|
||||
isFetching: PropTypes.bool.isRequired,
|
||||
isPopulated: PropTypes.bool.isRequired,
|
||||
error: PropTypes.object,
|
||||
|
||||
Reference in New Issue
Block a user