chore(core-blocks): table's item selection behavior

This commit is contained in:
Wroud
2020-08-24 16:41:45 +03:00
parent e06fb3c8f4
commit f1214f006f
@@ -55,9 +55,9 @@ export const TableItem = observer(function TableItem({
(e: React.MouseEvent<HTMLTableRowElement>) => {
if (!selectDisabled) {
const isSelected = context.selectedItems.get(item);
if (!e.ctrlKey) {
context.clearSelection();
}
// if (!e.ctrlKey) {
// context.clearSelection();
// }
context.setItemSelect(item, !isSelected);
}