@syncfusion/ej2-gantt 20.1.47 → 20.1.48

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.
@@ -4281,7 +4281,7 @@ class GanttChart {
4281
4281
  const emptydivHeight = 36;
4282
4282
  const emptyHeight = this.parent.contentHeight === 0 ? this.parent.flatData.length > 1 ? emptydivHeight : 0 : this.parent.contentHeight;
4283
4283
  let contentElement = this.parent.element.getElementsByClassName('e-chart-scroll-container e-content')[0];
4284
- if (emptyHeight >= contentElement['offsetHeight']) {
4284
+ if (emptyHeight >= contentElement['offsetHeight'] || this.parent.height === 'auto') {
4285
4285
  this.chartBodyContent.style.height = formatUnit(emptyHeight);
4286
4286
  }
4287
4287
  else {
@@ -24647,11 +24647,13 @@ class Filter$1 {
24647
24647
  // ...
24648
24648
  }
24649
24649
  closeFilterOnContextClick(element) {
24650
+ let datePickerElement = document.querySelector('body > div.e-datepicker');
24651
+ let dateTimePickerElement = document.querySelector('body > div.e-datetimepicker');
24650
24652
  if (this.filterMenuElement && document.body.contains(this.filterMenuElement)) {
24651
24653
  const ganttElement = closest(element, '#' + this.parent.element.id)
24652
24654
  || element.querySelector('#' + this.parent.element.id);
24653
- if ((!(this.filterMenuElement.contains(element)) && !isNullOrUndefined(ganttElement)) || element.nodeName === 'HTML'
24654
- || ((element.nodeName === 'DIV') && (!element.classList.contains('e-day')))) {
24655
+ if ((!(this.filterMenuElement.contains(element)) && !isNullOrUndefined(ganttElement)) || (!(this.filterMenuElement.contains(element)) && (isNullOrUndefined(datePickerElement))
24656
+ && (isNullOrUndefined(dateTimePickerElement)) && ((element.nodeName === 'DIV') || (element.nodeName === 'HTML')))) {
24655
24657
  remove(this.filterMenuElement);
24656
24658
  this.parent.treeGrid.grid.notify('filter-menu-close', { isOpen: false });
24657
24659
  this.filterMenuElement = null;
@@ -27107,10 +27109,12 @@ class RowDD$1 {
27107
27109
  }
27108
27110
  }
27109
27111
  if (!args.cancel) {
27110
- args.cancel = true;
27111
27112
  args.requestType = 'beforeDrop';
27112
27113
  this.parent.trigger('actionBegin', args);
27113
- this.dropRows(args, true); // method to update the data collections based on drop action
27114
+ if (!args.cancel) {
27115
+ this.dropRows(args, true); // method to update the data collections based on drop action
27116
+ args.cancel = true;
27117
+ }
27114
27118
  }
27115
27119
  }
27116
27120
  dropRows(args, isByMethod) {