@trudb/tru-common-lib 0.2.298 → 0.2.299

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.
@@ -8120,9 +8120,9 @@ class TruDataGrid {
8120
8120
  }
8121
8121
  };
8122
8122
  onCellMouseDown = (cellData) => {
8123
- this.rowSelectedOnMousedown = cellData.node.isSelected();
8124
- if (!cellData.event?.shiftKey)
8125
- this.rowFocuedOnMousedown = cellData.node;
8123
+ //this.rowSelectedOnMousedown = cellData.node.isSelected();
8124
+ //if (!cellData.event?.shiftKey)
8125
+ // this.rowFocuedOnMousedown = cellData.node;
8126
8126
  };
8127
8127
  onCellClicked = (cellData) => {
8128
8128
  //let target = cellData.event.target as Element;
@@ -8151,10 +8151,10 @@ class TruDataGrid {
8151
8151
  else {
8152
8152
  if (!rowData.event.shiftKey) {
8153
8153
  if (rowData.event.ctrlKey) {
8154
- if (this.rowSelectedOnMousedown) {
8154
+ if (rowData.node.isSelected()) {
8155
8155
  rowData.node.setSelected(false);
8156
8156
  if (target.classList.contains('ag-cell-focus'))
8157
- setTimeout(() => { target.classList.remove('ag-cell-focus'); });
8157
+ target.classList.remove('ag-cell-focus');
8158
8158
  }
8159
8159
  else {
8160
8160
  rowData.node.setSelected(true);