@syncfusion/ej2-gantt 23.1.42 → 23.1.43

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.
@@ -8450,8 +8450,8 @@ class GanttTreeGrid {
8450
8450
  }
8451
8451
  } // eslint-disable-next-line
8452
8452
  durationValueAccessor(field, data, column) {
8453
- const ganttProp = data.ganttProperties;
8454
- if (!isNullOrUndefined(ganttProp)) {
8453
+ if (!isNullOrUndefined(data) && !isNullOrUndefined(data.ganttProperties)) {
8454
+ const ganttProp = data.ganttProperties;
8455
8455
  return this.parent.dataOperation.getDurationString(ganttProp.duration, ganttProp.durationUnit);
8456
8456
  }
8457
8457
  else if (!this.parent.loadChildOnDemand && this.parent.taskFields.hasChildMapping) {
@@ -11285,7 +11285,7 @@ class Dependency {
11285
11285
  elSplit[4] = elSplit[4] + '-' + elSplit[5];
11286
11286
  elSplit.pop();
11287
11287
  }
11288
- if (elSplit.length === 5 && elSplit[4].length > 12) {
11288
+ if (elSplit.length === 5 && elSplit[4].length >= 12) {
11289
11289
  id = el.substring(0, 36);
11290
11290
  if (regex.test(id)) {
11291
11291
  isGUId = true;
@@ -23428,7 +23428,7 @@ class ConnectorLineEdit {
23428
23428
  elSplit[4] = elSplit[4] + '-' + elSplit[5];
23429
23429
  elSplit.pop();
23430
23430
  }
23431
- if (elSplit.length === 5 && elSplit[4].length > 12) {
23431
+ if (elSplit.length === 5 && elSplit[4].length >= 12) {
23432
23432
  id = preArray[j].substring(0, 36);
23433
23433
  if (regex.test(id)) {
23434
23434
  isGUId = true;
@@ -28446,7 +28446,7 @@ class Filter$1 {
28446
28446
  const ganttElement = closest(element, '#' + this.parent.element.id)
28447
28447
  || element.querySelector('#' + this.parent.element.id);
28448
28448
  if ((!(this.filterMenuElement.contains(element)) && !isNullOrUndefined(ganttElement)) || (!(this.filterMenuElement.contains(element)) && (isNullOrUndefined(datePickerElement))
28449
- && (isNullOrUndefined(dateTimePickerElement)) && ((element.nodeName === 'DIV') || (element.nodeName === 'HTML') || (element.nodeName === 'SPAN') || (element.nodeName === 'BUTTON')))) {
28449
+ && (isNullOrUndefined(dateTimePickerElement)) && ((element.nodeName === 'DIV') || (element.nodeName === 'HTML') || (element.nodeName === 'SPAN') || (element.nodeName === 'BUTTON'))) && !element.classList.contains('e-dropdownbase')) {
28450
28450
  remove(this.filterMenuElement);
28451
28451
  this.parent.treeGrid.grid.notify('filter-menu-close', { isOpen: false });
28452
28452
  this.filterMenuElement = null;