@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.
@@ -496,7 +496,8 @@ let DropDownButton = class DropDownButton extends Component {
496
496
  }
497
497
  EventHandler.remove(this.getPopUpElement(), 'click', this.clickHandler);
498
498
  EventHandler.remove(this.getPopUpElement(), 'keydown', this.keyBoardHandler);
499
- if (this.isPopupCreated) {
499
+ if (this.isPopupCreated && this.dropDown) {
500
+ this.dropDown.element = null;
500
501
  this.dropDown = undefined;
501
502
  }
502
503
  }
@@ -714,10 +715,6 @@ let DropDownButton = class DropDownButton extends Component {
714
715
  }
715
716
  const openArgs = { element: ul, items: this.items };
716
717
  this.trigger('open', openArgs);
717
- if (this.enableRtl && ul.parentElement.style.left !== '0px') {
718
- const popupRect = ul.parentElement.offsetWidth - this.element.offsetWidth;
719
- ul.parentElement.style.left = parseFloat(ul.parentElement.style.left) - popupRect + "px";
720
- }
721
718
  }
722
719
  });
723
720
  }