Skip to content

Commit c170995

Browse files
author
dtbuild
committed
1c48c11ac0168d9598795641b4fc337a2233289e Fix: Don't modify the display array in -api row().remove() - it should wait for the next draw
This relates to DataTables/DataTablesSrc#269 and is fairly nuanced - it boils down to the fact that the display array should reflect what is shown in the table, and deleting a value from it will cause an index offset. The other option might be to make the element null, as happens with the master, but that would be a change in type and I'm not certain everything could handle that. The array will regenerate on the next draw, so it is properly in sync with what is drawn now. Sync to source repo @1c48c11ac0168d9598795641b4fc337a2233289e
1 parent 5794b2a commit c170995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datatables.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
],
1515
"src-repo": "http://github.com/DataTables/DataTablesSrc",
1616
"last-tag": "2.0.4",
17-
"last-sync": "d04853a9ab4fb7e9f5b4acfc1fea81f5952116e8"
17+
"last-sync": "1c48c11ac0168d9598795641b4fc337a2233289e"
1818
}

0 commit comments

Comments
 (0)