@syncfusion/ej2-base 20.1.56 → 20.1.61

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.
@@ -212,7 +212,7 @@ function extend(copied, first, second, deep) {
212
212
  else {
213
213
  /* istanbul ignore next */
214
214
  clone = isBlazor() ? src && Object.keys(copy).length : src ? src : [];
215
- result[key] = extend([], clone, copy, deep);
215
+ result[key] = extend([], clone, copy, (clone && clone.length) || (copy && copy.length));
216
216
  }
217
217
  }
218
218
  else {
@@ -7879,6 +7879,18 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
7879
7879
  draEleTop -= this.parentScrollY;
7880
7880
  draEleLeft -= this.parentScrollX;
7881
7881
  }
7882
+ if (this.helperElement.classList.contains('e-treeview')) {
7883
+ var body = document.body;
7884
+ var html = document.documentElement;
7885
+ var tempHeight = Math.max(body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
7886
+ var tempWidth = Math.max(body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);
7887
+ if (draEleTop > tempHeight) {
7888
+ draEleTop = tempHeight;
7889
+ }
7890
+ if (draEleLeft > tempWidth) {
7891
+ draEleLeft = tempWidth;
7892
+ }
7893
+ }
7882
7894
  var dragValue = this.getProcessedPositionValue({ top: draEleTop + 'px', left: draEleLeft + 'px' });
7883
7895
  setStyleAttribute(helperElement, this.getDragPosition(dragValue));
7884
7896
  if (!this.elementInViewport(helperElement) && this.enableAutoScroll) {
@@ -9530,7 +9542,7 @@ var SanitizeHtmlHelper = /** @__PURE__ @class */ (function () {
9530
9542
  this.removeXssAttrs();
9531
9543
  var tempEleValue = this.wrapElement.innerHTML;
9532
9544
  this.removeElement();
9533
- return tempEleValue;
9545
+ return tempEleValue.replace('&', '&');
9534
9546
  };
9535
9547
  SanitizeHtmlHelper.removeElement = function () {
9536
9548
  // Removes an element's attibute to avoid html tag validation