You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you click the bulk check box, all the rows are visually selected but the indexes array is not available like it is when you check the rows individually.
indexes should be defined as an array with all the row indexes after clicking the bulk checkbox.
For instance, in a grid with 10 rows. If you begin with a bulk check then manually uncheck a row, you should now have 9 indexes but indexes is undefined. If you check that same row again, indexes is now defined but with 1 not 10.
@bencripps I'm going to try to fix this and update the tests. I just wanted to capture it. Please assign it to me.
The text was updated successfully, but these errors were encountered:
the workaround is not use to indexes - instead the selected state of each row which is actually included within selection although its not reflected in indexes.
const selection = this.props.selection.get("workbench");
const selectionData = selection.toJS();
const selectedIds = [];
for (var key in selectionData) {
if (selectionData[key]) {
let selectedId = key.split("row-")[1];
if ("NaN" !== String(Number(selectedId))) selectedIds.push(Number(selectedId));
}
}
If you click the bulk check box, all the rows are visually selected but the indexes array is not available like it is when you check the rows individually.
indexes should be defined as an array with all the row indexes after clicking the bulk checkbox.
For instance, in a grid with 10 rows. If you begin with a bulk check then manually uncheck a row, you should now have 9 indexes but indexes is undefined. If you check that same row again, indexes is now defined but with 1 not 10.
@bencripps I'm going to try to fix this and update the tests. I just wanted to capture it. Please assign it to me.
The text was updated successfully, but these errors were encountered: