SlickGrid
SlickGrid copied to clipboard
invalidateRows() has an incorrect check whether to makeActiveCellNormal
It iterates the array 'rows' by an index i and checks whether activeRow === i, while it should instead check whether activeRow === rows[i]. This means it may incorrectly cancel editing for a row which is not invalidated or vice-versa - not cancel editing for a row which is being invalidated (example: rows = [0,1,3], activeRow = 3).
Remarkable that it went for so long without getting noticed. Thanks!