We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a957b4 commit 81720a6Copy full SHA for 81720a6
1 file changed
dist/table-moderno.js
@@ -591,6 +591,7 @@ class TableModerno {
591
* @param {Object} data New data to load the table with
592
*/
593
appendData(data, keepSort = false) {
594
+ let existingDataLength = this.tableData.length;
595
this.prevTableData = [...this.prevTableData, ...data];
596
this.tableData = [...this.tableData, ...data];
597
@@ -602,7 +603,7 @@ class TableModerno {
602
603
var clipClass = this.config.singleLineRows ? "clip" : "no-clip";
604
605
var dataString = "";
- for (var i = 0; i < data.length; i++) {
606
+ for (var i = existingDataLength; i < this.tableData.length; i++) {
607
dataString += this.getRowString(i, colKeys, clipClass);
608
}
609
$(`#${this.tableID} .moderno-table-body`).append(dataString);
0 commit comments