aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/components/TableBox.tsx
diff options
context:
space:
mode:
authorsrichman333 <sarah_n_richman@brown.edu>2024-03-13 19:02:56 -0400
committersrichman333 <sarah_n_richman@brown.edu>2024-03-13 19:02:56 -0400
commit789e0d35e14f5fec7ef885daf3d61fa389117825 (patch)
tree695fe69554d46b494f342f392bfe4d065add1680 /src/client/views/nodes/DataVizBox/components/TableBox.tsx
parente8734362d2a0981cdbeafbcaac3dadcc0a3f123a (diff)
keeping rows selected fix
Diffstat (limited to 'src/client/views/nodes/DataVizBox/components/TableBox.tsx')
-rw-r--r--src/client/views/nodes/DataVizBox/components/TableBox.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client/views/nodes/DataVizBox/components/TableBox.tsx b/src/client/views/nodes/DataVizBox/components/TableBox.tsx
index 05429e82b..a0d8ecc6f 100644
--- a/src/client/views/nodes/DataVizBox/components/TableBox.tsx
+++ b/src/client/views/nodes/DataVizBox/components/TableBox.tsx
@@ -188,12 +188,16 @@ export class TableBox extends ObservableReactComponent<TableBoxProps> {
this._tableDataIds.forEach(rowID => {
if (this.filteringType=="Value"){
if (this._props.records[rowID][this.filteringColumn]==this.filteringVal[0]) {
- this.tableRowClick(e, rowID);
+ if (!NumListCast(this._props.layoutDoc.dataViz_selectedRows).includes(rowID)) {
+ this.tableRowClick(e, rowID);
+ }
}
}
else {
if (this.filteringVal[0]<=this._props.records[rowID][this.filteringColumn] && this._props.records[rowID][this.filteringColumn]<=this.filteringVal[1]){
- this.tableRowClick(e, rowID);
+ if (!NumListCast(this._props.layoutDoc.dataViz_selectedRows).includes(rowID)) {
+ this.tableRowClick(e, rowID);
+ }
}
}
})