@trudb/tru-common-lib 0.2.310 → 0.2.312

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.
@@ -6524,7 +6524,11 @@ class TruDataGridPkeyCellRenderer {
6524
6524
  onMouseDown = (event) => {
6525
6525
  };
6526
6526
  onMouseUp = (event) => {
6527
- this.params.api.clearFocusedCell();
6527
+ if (!this.params.node.isSelected()) {
6528
+ let target = event.target.parentElement;
6529
+ if (target.classList.contains('ag-row-focus'))
6530
+ target.classList.remove('ag-row-focus');
6531
+ }
6528
6532
  };
6529
6533
  onCopy = (event) => {
6530
6534
  let selectedRows = this.params.api.getSelectedRows();
@@ -8130,8 +8134,6 @@ class TruDataGrid {
8130
8134
  if (cellData.event.ctrlKey) {
8131
8135
  if (this.rowSelectedOnMousedown) {
8132
8136
  cellData.node.setSelected(false);
8133
- if (target.classList.contains('ag-row-focus'))
8134
- target.classList.remove('ag-row-focus');
8135
8137
  }
8136
8138
  else {
8137
8139
  cellData.node.setSelected(true);