Web: Files: Added scrolling up when navigating between folders.
This commit is contained in:
parent
20bb304f1e
commit
b8c2120fac
@ -256,6 +256,10 @@ class SectionBodyContent extends React.Component {
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
if (this.props.isTabletView) {
|
||||
if (this.props.folderId !== prevProps.folderId) {
|
||||
this.customScrollElm && this.customScrollElm.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
if (this.props.filter.page !== prevProps.filter.page)
|
||||
this.isScrollUpOnTheNextPage = true;
|
||||
if (this.isScrollUpOnTheNextPage) {
|
||||
|
Loading…
Reference in New Issue
Block a user