@trudb/tru-common-lib 0.2.309 → 0.2.311

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,9 @@ class TruDataGridPkeyCellRenderer {
6524
6524
  onMouseDown = (event) => {
6525
6525
  };
6526
6526
  onMouseUp = (event) => {
6527
- this.params.api.clearFocusedCell();
6527
+ let target = event.target.parentElement;
6528
+ if (target.classList.contains('ag-row-focus'))
6529
+ target.classList.remove('ag-row-focus');
6528
6530
  };
6529
6531
  onCopy = (event) => {
6530
6532
  let selectedRows = this.params.api.getSelectedRows();
@@ -6556,7 +6558,7 @@ class TruDataGridPkeyCellRenderer {
6556
6558
  this.displayValue = params.value;
6557
6559
  params.eGridCell.addEventListener('contextmenu', this.onRightClick);
6558
6560
  params.eGridCell.addEventListener('mousedown', this.onMouseDown);
6559
- params.eGridCell.addEventListener('mousedown', this.onMouseUp);
6561
+ params.eGridCell.addEventListener('mouseup', this.onMouseUp);
6560
6562
  this.windowClickSubscription = fromEvent(window, 'click').subscribe((_) => {
6561
6563
  if (this.contextMenu.menuOpen) {
6562
6564
  this.contextMenu.closeMenu();
@@ -8130,8 +8132,6 @@ class TruDataGrid {
8130
8132
  if (cellData.event.ctrlKey) {
8131
8133
  if (this.rowSelectedOnMousedown) {
8132
8134
  cellData.node.setSelected(false);
8133
- if (target.classList.contains('ag-row-focus'))
8134
- target.classList.remove('ag-row-focus');
8135
8135
  }
8136
8136
  else {
8137
8137
  cellData.node.setSelected(true);