Redirect to first page after limit update

This commit is contained in:
Pierre Burgy 2017-04-11 18:49:25 +02:00
parent 3f601ac3d5
commit 03e941e531

View File

@ -172,6 +172,7 @@ function mapDispatchToProps(dispatch) {
onLimitChange: (e) => {
const newLimit = Number(e.target.value);
dispatch(changeLimit(newLimit));
dispatch(changePage(1));
dispatch(loadRecords());
e.target.blur();
},