Skip to content

Commit

Permalink
Fixed folder contents issue with persistent selection
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed Dec 23, 2024
1 parent 374dfbc commit 840f94d
Showing 1 changed file with 6 additions and 0 deletions.
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 840f94d

Please sign in to comment.