diff --git a/news/6555.bugfix b/news/6555.bugfix new file mode 100644 index 0000000000..8b789a7119 --- /dev/null +++ b/news/6555.bugfix @@ -0,0 +1 @@ +Fixed folder contents issues with persistent selection across page changes. @pnicolli diff --git a/src/components/manage/Contents/Contents.jsx b/src/components/manage/Contents/Contents.jsx index 8b9849a02c..b99263352c 100644 --- a/src/components/manage/Contents/Contents.jsx +++ b/src/components/manage/Contents/Contents.jsx @@ -457,6 +457,7 @@ class Contents extends Component { this.setState( { currentPage: 0, + selected: [], }, () => this.setState({ filter: '' }, () => @@ -650,6 +651,7 @@ class Contents extends Component { this.setState( { currentPage: value, + selected: [], }, () => this.fetchContents(), ); @@ -667,6 +669,7 @@ class Contents extends Component { { pageSize: value, currentPage: 0, + selected: [], }, () => this.fetchContents(), ); @@ -726,6 +729,7 @@ class Contents extends Component { this.setState({ sort_on: values[0], sort_order: values[1], + selected: [], }); this.props.sortContent( getBaseUrl(this.props.pathname), @@ -753,6 +757,7 @@ class Contents extends Component { this.setState( { currentPage: 0, + selected: [], }, () => this.fetchContents(), ); @@ -778,6 +783,7 @@ class Contents extends Component { this.setState( { currentPage: 0, + selected: [], }, () => this.fetchContents(), );