angular-ui/ui-grid

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

Open

#5.706 geöffnet am 29. Sept. 2016

Auf GitHub ansehen
 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)JavaScript (2.496 Forks)batch import
good first issue

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide