@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.
@@ -4325,7 +4325,7 @@ var GanttChart = /** @__PURE__ @class */ (function () {
4325
4325
  var emptydivHeight = 36;
4326
4326
  var emptyHeight = this.parent.contentHeight === 0 ? this.parent.flatData.length > 1 ? emptydivHeight : 0 : this.parent.contentHeight;
4327
4327
  var contentElement = this.parent.element.getElementsByClassName('e-chart-scroll-container e-content')[0];
4328
- if (emptyHeight >= contentElement['offsetHeight']) {
4328
+ if (emptyHeight >= contentElement['offsetHeight'] || this.parent.height === 'auto') {
4329
4329
  this.chartBodyContent.style.height = formatUnit(emptyHeight);
4330
4330
  }
4331
4331
  else {
@@ -25168,11 +25168,13 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
25168
25168
  // ...
25169
25169
  };
25170
25170
  Filter$$1.prototype.closeFilterOnContextClick = function (element) {
25171
+ var datePickerElement = document.querySelector('body > div.e-datepicker');
25172
+ var dateTimePickerElement = document.querySelector('body > div.e-datetimepicker');
25171
25173
  if (this.filterMenuElement && document.body.contains(this.filterMenuElement)) {
25172
25174
  var ganttElement = closest(element, '#' + this.parent.element.id)
25173
25175
  || element.querySelector('#' + this.parent.element.id);
25174
- if ((!(this.filterMenuElement.contains(element)) && !isNullOrUndefined(ganttElement)) || element.nodeName === 'HTML'
25175
- || ((element.nodeName === 'DIV') && (!element.classList.contains('e-day')))) {
25176
+ if ((!(this.filterMenuElement.contains(element)) && !isNullOrUndefined(ganttElement)) || (!(this.filterMenuElement.contains(element)) && (isNullOrUndefined(datePickerElement))
25177
+ && (isNullOrUndefined(dateTimePickerElement)) && ((element.nodeName === 'DIV') || (element.nodeName === 'HTML')))) {
25176
25178
  remove(this.filterMenuElement);
25177
25179
  this.parent.treeGrid.grid.notify('filter-menu-close', { isOpen: false });
25178
25180
  this.filterMenuElement = null;
@@ -27656,10 +27658,12 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
27656
27658
  }
27657
27659
  }
27658
27660
  if (!args.cancel) {
27659
- args.cancel = true;
27660
27661
  args.requestType = 'beforeDrop';
27661
27662
  this.parent.trigger('actionBegin', args);
27662
- this.dropRows(args, true); // method to update the data collections based on drop action
27663
+ if (!args.cancel) {
27664
+ this.dropRows(args, true); // method to update the data collections based on drop action
27665
+ args.cancel = true;
27666
+ }
27663
27667
  }
27664
27668
  };
27665
27669
  RowDD$$1.prototype.dropRows = function (args, isByMethod) {