Skip to content

Commit

Permalink
Merge pull request #8605 from infor-design/1672-editing-error
Browse files Browse the repository at this point in the history
1672 - Fix errors editing on second page
  • Loading branch information
tmcconechy committed Apr 8, 2024
2 parents 0859ec2 + 33bf53e commit 8ecd89f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## v4.95.0 Fixes

- `[Contextual Action Panel]` Fixed added padding on contextual action panel. ([#8553](https://github.com/infor-design/enterprise/issues/8553))
- `[Datagrid]` Fixed an error editing on non first page in server side paging datagrid. ([#8537](https://github.com/infor-design/enterprise-ng/issues/1672))
- `[Forms]` Fixed fileupload layout in compact form. ([#8537](https://github.com/infor-design/enterprise/issues/8537))
- `[Cards]` Fixed title and button regression and position. ([#8602](https://github.com/infor-design/enterprise/issues/8602))

Expand Down
2 changes: 1 addition & 1 deletion src/components/datagrid/datagrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -11468,7 +11468,7 @@ Datagrid.prototype = {
dataRowIndex = row;
}

if (!isTreeGrid && this.settings.paging && this.pagerAPI.activePage > 1) {
if (!isTreeGrid && this.settings.paging && this.pagerAPI.activePage > 1 && !this.settings.source) {
if (dataRowIndex < (this.pagerAPI.activePage - 1) * this.settings.pagesize) {
dataRowIndex += (this.pagerAPI.activePage - 1) * this.settings.pagesize;
}
Expand Down

0 comments on commit 8ecd89f

Please sign in to comment.