@trudb/tru-common-lib 0.2.306 → 0.2.307

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8115,6 +8115,7 @@ class TruDataGrid {
8115
8115
  }
8116
8116
  };
8117
8117
  onCellMouseDown = (cellData) => {
8118
+ this.rowSelectedOnMousedown = cellData.node.isSelected();
8118
8119
  };
8119
8120
  onCellClicked = (cellData) => {
8120
8121
  let target = cellData.event.target;
@@ -8124,10 +8125,14 @@ class TruDataGrid {
8124
8125
  else {
8125
8126
  if (!cellData.event.shiftKey) {
8126
8127
  if (cellData.event.ctrlKey) {
8127
- if (cellData.node.isSelected())
8128
+ if (this.rowSelectedOnMousedown) {
8128
8129
  cellData.node.setSelected(false);
8129
- else
8130
+ if (target.classList.contains('ag-row-focus'))
8131
+ target.classList.remove('ag-row-focus');
8132
+ }
8133
+ else {
8130
8134
  cellData.node.setSelected(true);
8135
+ }
8131
8136
  }
8132
8137
  else {
8133
8138
  cellData.api.deselectAll();