@syncfusion/ej2-splitbuttons 21.1.41 → 21.2.5

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.
@@ -530,7 +530,8 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
530
530
  }
531
531
  EventHandler.remove(this.getPopUpElement(), 'click', this.clickHandler);
532
532
  EventHandler.remove(this.getPopUpElement(), 'keydown', this.keyBoardHandler);
533
- if (this.isPopupCreated) {
533
+ if (this.isPopupCreated && this.dropDown) {
534
+ this.dropDown.element = null;
534
535
  this.dropDown = undefined;
535
536
  }
536
537
  }
@@ -750,10 +751,6 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
750
751
  }
751
752
  var openArgs = { element: ul_1, items: _this.items };
752
753
  _this.trigger('open', openArgs);
753
- if (_this.enableRtl && ul_1.parentElement.style.left !== '0px') {
754
- var popupRect = ul_1.parentElement.offsetWidth - _this.element.offsetWidth;
755
- ul_1.parentElement.style.left = parseFloat(ul_1.parentElement.style.left) - popupRect + "px";
756
- }
757
754
  }
758
755
  });
759
756
  };
@@ -1709,7 +1706,7 @@ var ProgressButton = /** @__PURE__ @class */ (function (_super) {
1709
1706
  var isVertical = clsList.contains('e-vertical');
1710
1707
  clsList.add(PROGRESSACTIVE);
1711
1708
  if (!(clsList.contains(HIDESPINNER))) {
1712
- showSpinner(this.element);
1709
+ showSpinner(this.element.querySelector(".e-spinner"));
1713
1710
  }
1714
1711
  this.startAnimate(Date.now(), progressTime ? progressTime : 0, progressTime ? Date.now() - (this.duration * 1 / 100) : Date.now(), percent ? percent : 0, 0, this.step, 0, isVertical);
1715
1712
  this.startContAnimate();
@@ -1842,7 +1839,7 @@ var ProgressButton = /** @__PURE__ @class */ (function (_super) {
1842
1839
  ProgressButton.prototype.hideSpin = function () {
1843
1840
  var cont = this.element.getElementsByClassName(CONTENTCLS)[0];
1844
1841
  if (!(this.element.classList.contains(HIDESPINNER))) {
1845
- hideSpinner(this.element);
1842
+ hideSpinner(this.element.querySelector(".e-spinner"));
1846
1843
  }
1847
1844
  this.element.classList.remove(PROGRESSACTIVE);
1848
1845
  if (this.animationSettings.effect !== 'None') {
@@ -1899,7 +1896,7 @@ var ProgressButton = /** @__PURE__ @class */ (function (_super) {
1899
1896
  this.setContent();
1900
1897
  this.createSpinner();
1901
1898
  if (isSpinning) {
1902
- showSpinner(this.element);
1899
+ showSpinner(this.element.querySelector(".e-spinner"));
1903
1900
  isSpinning = false;
1904
1901
  }
1905
1902
  if (this.enableProgress) {