angular-ui/ui-grid

Async row removal does not work with inline edit

已關閉

#5,649 建立於 2016年8月26日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (2,496 個分叉)batch import
help wanted

倉庫指標

星標
 (5,395 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

We remove large amounts of data by a background worker and we reflect this on ui-grid. So rows might be removed without any user action (just the refresher which runs in background notices that row is no longer present in database, it is also removed from grid immediately).

The problem is that if user is inline editing any row BELOW such removed row, inline edit still keeps old index.

I have created a plunkr to demonstrate the issue: http://plnkr.co/edit/I8KnXLCxeDiKQq5OR9lC?p=preview

Steps to reproduce:

  1. Start inline edit of second row immediately (e.g. change name and remain in inline edit mode)
  2. After 10 seconds first row is automatically removed
  3. Observe that row with the same index is in edit mode, but actually edited row is moved up. So user is editing another row.

貢獻者指南