mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 11:25:17 +00:00
Redirect to first page after limit update
This commit is contained in:
parent
3f601ac3d5
commit
03e941e531
@ -172,6 +172,7 @@ function mapDispatchToProps(dispatch) {
|
|||||||
onLimitChange: (e) => {
|
onLimitChange: (e) => {
|
||||||
const newLimit = Number(e.target.value);
|
const newLimit = Number(e.target.value);
|
||||||
dispatch(changeLimit(newLimit));
|
dispatch(changeLimit(newLimit));
|
||||||
|
dispatch(changePage(1));
|
||||||
dispatch(loadRecords());
|
dispatch(loadRecords());
|
||||||
e.target.blur();
|
e.target.blur();
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user