@syncfusion/ej2-treegrid 24.1.44 → 24.1.45

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.
@@ -5313,7 +5313,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
5313
5313
  showTooltip = true;
5314
5314
  }
5315
5315
  const element = parentsUntil(e.target, 'e-ellipsistooltip');
5316
- if ((showTooltip || (this.treeColumnIndex != -1 && cols[this.treeColumnIndex].clipMode === 'EllipsisWithTooltip')) && element != null && parseInt(element.getAttribute("data-colindex"), 10) == this.treeColumnIndex && element.children[0].scrollWidth > element.children[0].clientWidth) {
5316
+ if ((showTooltip || (this.treeColumnIndex !== -1 && cols[this.treeColumnIndex].clipMode === 'EllipsisWithTooltip')) && element !== null && parseInt(element.getAttribute('data-colindex'), 10) === this.treeColumnIndex && element.children[0].scrollWidth > element.children[0].clientWidth) {
5317
5317
  const tooltip = new Tooltip({
5318
5318
  content: element.textContent
5319
5319
  });
@@ -10686,7 +10686,7 @@ class ContextMenu$1 {
10686
10686
  const selectedrow = tObj.getSelectedRows()[0];
10687
10687
  if ((indent || outdent) && !isNullOrUndefined(selectedrow)) {
10688
10688
  const targetElement = args.event.target.closest('td');
10689
- if (isNullOrUndefined(targetElement) || (!isNullOrUndefined(targetElement) && !targetElement.classList.contains('e-rowcell'))) {
10689
+ if (isNullOrUndefined(targetElement) || (!isNullOrUndefined(targetElement) && (!targetElement.classList.contains('e-rowcell') || targetElement.querySelectorAll('.e-gridform').length !== 0))) {
10690
10690
  indent.style.display = outdent.style.display = 'none';
10691
10691
  }
10692
10692
  else {
@@ -10696,19 +10696,16 @@ class ContextMenu$1 {
10696
10696
  else if (args['name'] !== 'rowDeselected' || (!isNullOrUndefined(selectedrow) && tObj.grid.isCheckBoxSelection)) {
10697
10697
  const selectedItem = tObj.getCurrentViewRecords()[selectedrow.rowIndex];
10698
10698
  if (!isNullOrUndefined(selectedItem)) {
10699
- if ((selectedItem.level > tObj.getCurrentViewRecords()[selectedrow.rowIndex - 1].level) || this.parent.editSettings.mode === 'Batch'
10700
- || this.parent.editSettings.mode === 'Cell') {
10699
+ if ((selectedItem.level > tObj.getCurrentViewRecords()[selectedrow.rowIndex - 1].level)) {
10701
10700
  indent.style.display = 'none';
10702
10701
  }
10703
10702
  else {
10704
10703
  indent.style.display = 'block';
10705
10704
  }
10706
- if ((selectedItem.level === tObj.getCurrentViewRecords()[selectedrow.rowIndex - 1].level) && this.parent.editSettings.mode !== 'Batch'
10707
- && this.parent.editSettings.mode !== 'Cell') {
10705
+ if ((selectedItem.level === tObj.getCurrentViewRecords()[selectedrow.rowIndex - 1].level)) {
10708
10706
  indent.style.display = 'block';
10709
10707
  }
10710
- if ((selectedItem.level === 0) || this.parent.editSettings.mode === 'Batch'
10711
- || this.parent.editSettings.mode === 'Cell') {
10708
+ if ((selectedItem.level === 0)) {
10712
10709
  outdent.style.display = 'none';
10713
10710
  }
10714
10711
  else {