Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3e9fd5

Browse files
committed
fix: allow cell select to work after sorting
1 parent 09abc84 commit f3e9fd5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/datamanager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@ export default class DataManager {
313313
this.rows.forEach((row, index) => {
314314
const viewIndex = this.rowViewOrder.indexOf(index);
315315
const cell = row[srNoColIndex];
316+
row.meta.rowIndex = viewIndex
317+
if(Array.isArray(row)){
318+
row.forEach(r => {
319+
r.rowIndex = viewIndex
320+
})
321+
}
316322
cell.content = (viewIndex + 1) + '';
317323
});
318324
}

0 commit comments

Comments
 (0)