Skip to content

Commit

Permalink
Merge pull request #34 from agentlab/issue-33-base-table-selection
Browse files Browse the repository at this point in the history
[fix] GH-33 BaseTable change connections on select
  • Loading branch information
amivanoff authored Sep 30, 2021
2 parents 287c25d + 2224b17 commit 777a608
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/table/basetable/ReactBaseTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export const EditableTable: React.FC<EditableTableProps<any>> = React.memo(
}
}
setSelection(newSelection);
onSelect(newSelection);
};

const handleSelectHeaderChange = ({ selected, data }: any) => {
Expand All @@ -171,6 +172,7 @@ export const EditableTable: React.FC<EditableTableProps<any>> = React.memo(
newSelection = [];
}
setSelection(newSelection);
onSelect(newSelection);
};
const selectionColumn = {
key: '__selection__',
Expand Down

0 comments on commit 777a608

Please sign in to comment.