@syncfusion/ej2-splitbuttons 21.1.41 → 21.2.3

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
  };