Skip to content

Commit

Permalink
[Volto 17] Fixed folder contents issue with persistent selection (#6555)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli authored Jan 3, 2025
1 parent 75d6909 commit d26eafa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/6555.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 src/components/manage/Contents/Contents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ class Contents extends Component {
this.setState(
{
currentPage: 0,
selected: [],
},
() =>
this.setState({ filter: '' }, () =>
Expand Down Expand Up @@ -650,6 +651,7 @@ class Contents extends Component {
this.setState(
{
currentPage: value,
selected: [],
},
() => this.fetchContents(),
);
Expand All @@ -667,6 +669,7 @@ class Contents extends Component {
{
pageSize: value,
currentPage: 0,
selected: [],
},
() => this.fetchContents(),
);
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -753,6 +757,7 @@ class Contents extends Component {
this.setState(
{
currentPage: 0,
selected: [],
},
() => this.fetchContents(),
);
Expand All @@ -778,6 +783,7 @@ class Contents extends Component {
this.setState(
{
currentPage: 0,
selected: [],
},
() => this.fetchContents(),
);
Expand Down

0 comments on commit d26eafa

Please sign in to comment.