-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(stock): force refresh grid index
This commit forces the grid to use the correct index by referencing it in the HTML. Previously, grid cells were being reused instead of being updated. By referencing the index directly, the grid responds with the correct index. Closes #2492.
- Loading branch information
Showing
3 changed files
with
5 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div class="ui-grid-cell-contents text-center"> | ||
<a class="text-action" ng-click="grid.appScope.removeItem(grid.renderContainers.body.visibleRowCache.indexOf(row))" tabindex="-1"><i class="fa fa-trash-o text-danger"></i></a> | ||
<a class="text-action" ng-click="grid.appScope.removeItem(row.entity.id)" tabindex="-1"><i class="fa fa-trash-o text-danger"></i></a> | ||
</div> |