@syncfusion/ej2-splitbuttons 19.4.47 → 19.4.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.
@@ -1,4 +1,4 @@
1
- import { Animation, ChildProperty, Collection, Complex, Component, Event, EventHandler, KeyboardEvents, NotifyPropertyChanges, Property, SanitizeHtmlHelper, addClass, attributes, classList, closest, createElement, deleteObject, detach, extend, getInstance, getUniqueID, getValue, isNullOrUndefined, remove, removeClass, rippleEffect, select, setValue } from '@syncfusion/ej2-base';
1
+ import { Animation, ChildProperty, Collection, Complex, Component, Event, EventHandler, KeyboardEvents, NotifyPropertyChanges, Property, SanitizeHtmlHelper, addClass, attributes, classList, closest, createElement, deleteObject, detach, extend, getComponent, getInstance, getUniqueID, getValue, isNullOrUndefined, remove, removeClass, rippleEffect, select, setValue } from '@syncfusion/ej2-base';
2
2
  import { Button } from '@syncfusion/ej2-buttons';
3
3
  import { Popup, createSpinner, hideSpinner, showSpinner } from '@syncfusion/ej2-popups';
4
4
 
@@ -670,9 +670,25 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
670
670
  DropDownButton.prototype.openPopUp = function (e) {
671
671
  var _this = this;
672
672
  if (e === void 0) { e = null; }
673
+ var popupElem = this.getPopUpElement();
673
674
  if (!this.target) {
674
675
  this.createItems(true);
675
676
  }
677
+ else {
678
+ if (this.activeElem.length > 1) {
679
+ var splitButton = getComponent(this.activeElem[0], 'split-btn');
680
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
681
+ if (splitButton.isReact && popupElem.childNodes.length < 1) {
682
+ splitButton.appendReactElement(this.getTargetElement(), this.getPopUpElement());
683
+ }
684
+ }
685
+ else {
686
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
687
+ if (this.isReact && popupElem.childNodes.length < 1) {
688
+ this.appendReactElement(this.getTargetElement(), this.getPopUpElement());
689
+ }
690
+ }
691
+ }
676
692
  var ul = this.getULElement();
677
693
  this.popupWireEvents();
678
694
  var beforeOpenArgs = { element: ul, items: this.items, event: e, cancel: false };