angular-ui/ui-grid

saveState (in Demo) reselects incorrect rows after sorting (related to: #5663)

已关闭

#5,706 创建于 2016年9月29日

 (1 条评论) (1 个反应) (0 位负责人)JavaScript (2,496 个派生)batch import
good first issue

仓库指标

星标
 (5,395 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

To reproduce:

  1. go: http://ui-grid.info/docs/#/tutorial/208_save_state
  2. select first three rows
  3. click Save
  4. sort on first column
  5. click Restore

Result: the incorrect three rows are selected.

Observation: as noted in #5663, suspect the use of row indexes is the cause of this issue.

Further: With external pagination, selection or sorting this issue is compounded.

贡献者指南