Skip to content

Commit

Permalink
Fixed folder contents issues with persistent selection (#6554)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli authored Jan 3, 2025
1 parent 374dfbc commit ede64b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/volto/news/6554.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed folder contents issues with persistent selection across page changes. @pnicolli
6 changes: 6 additions & 0 deletions packages/volto/src/components/manage/Contents/Contents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ class Contents extends Component {
this.setState(
{
currentPage: 0,
selected: [],
},
() =>
this.setState({ filter: '' }, () =>
Expand Down Expand Up @@ -652,6 +653,7 @@ class Contents extends Component {
this.setState(
{
currentPage: value,
selected: [],
},
() => this.fetchContents(),
);
Expand All @@ -669,6 +671,7 @@ class Contents extends Component {
{
pageSize: value,
currentPage: 0,
selected: [],
},
() => this.fetchContents(),
);
Expand Down Expand Up @@ -728,6 +731,7 @@ class Contents extends Component {
this.setState({
sort_on: values[0],
sort_order: values[1],
selected: [],
});
this.props.sortContent(
getBaseUrl(this.props.pathname),
Expand Down Expand Up @@ -755,6 +759,7 @@ class Contents extends Component {
this.setState(
{
currentPage: 0,
selected: [],
},
() => this.fetchContents(),
);
Expand All @@ -780,6 +785,7 @@ class Contents extends Component {
this.setState(
{
currentPage: 0,
selected: [],
},
() => this.fetchContents(),
);
Expand Down

0 comments on commit ede64b4

Please sign in to comment.