@trudb/tru-common-lib 0.2.144 → 0.2.145

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.
@@ -6073,11 +6073,12 @@ class TruDataGridCellRenderer {
6073
6073
  this.pasteIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
6074
6074
  let clickedElement = event.target;
6075
6075
  if (clickedElement instanceof Element) {
6076
- let rect = clickedElement.getBoundingClientRect();
6077
- this.contextMenuPosition.x = event.clientX + 'px';
6078
- this.contextMenuPosition.y = event.clientY + 'px';
6079
- this.contextMenu.menu?.focusFirstItem('mouse');
6080
- this.contextMenu.openMenu();
6076
+ if (this.params.api.getEditingCells().length <= 0) {
6077
+ this.contextMenuPosition.x = event.clientX + 'px';
6078
+ this.contextMenuPosition.y = event.clientY + 'px';
6079
+ this.contextMenu.menu?.focusFirstItem('mouse');
6080
+ this.contextMenu.openMenu();
6081
+ }
6081
6082
  }
6082
6083
  };
6083
6084
  onCopy = (event) => {