@syncfusion/ej2-ribbon 26.1.38 → 26.1.40

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.
@@ -1422,7 +1422,9 @@ class RibbonButton {
1422
1422
  if (item.buttonSettings.clicked) {
1423
1423
  item.buttonSettings.clicked.call(this, e);
1424
1424
  }
1425
- overflowButton.toggle();
1425
+ if (overflowButton.element.classList.contains('e-active')) {
1426
+ overflowButton.toggle();
1427
+ }
1426
1428
  };
1427
1429
  }
1428
1430
  /**
@@ -1578,7 +1580,9 @@ class RibbonCheckBox {
1578
1580
  if (item.checkBoxSettings.change) {
1579
1581
  item.checkBoxSettings.change.call(this, e);
1580
1582
  }
1581
- overflowButton.toggle();
1583
+ if (overflowButton.element.classList.contains('e-active')) {
1584
+ overflowButton.toggle();
1585
+ }
1582
1586
  };
1583
1587
  }
1584
1588
  /**
@@ -1760,7 +1764,9 @@ class RibbonColorPicker {
1760
1764
  };
1761
1765
  splitBtn.close = () => {
1762
1766
  if (target && !target.closest('.e-ribbon-group-overflow-ddb')) {
1763
- overflowButton.toggle();
1767
+ if (overflowButton.element.classList.contains('e-active')) {
1768
+ overflowButton.toggle();
1769
+ }
1764
1770
  }
1765
1771
  };
1766
1772
  }
@@ -1968,7 +1974,9 @@ class RibbonComboBox {
1968
1974
  item.comboBoxSettings.close.call(this, e);
1969
1975
  }
1970
1976
  if (target && !target.closest('.e-ribbon-group-overflow-ddb')) {
1971
- overflowButton.toggle();
1977
+ if (overflowButton.element.classList.contains('e-active')) {
1978
+ overflowButton.toggle();
1979
+ }
1972
1980
  }
1973
1981
  };
1974
1982
  }
@@ -2160,7 +2168,9 @@ class RibbonDropDown {
2160
2168
  item.dropDownSettings.close.call(this, e);
2161
2169
  }
2162
2170
  if (target && !target.closest('.e-ribbon-group-overflow-ddb')) {
2163
- overflowButton.toggle();
2171
+ if (overflowButton.element.classList.contains('e-active')) {
2172
+ overflowButton.toggle();
2173
+ }
2164
2174
  }
2165
2175
  };
2166
2176
  }
@@ -2632,7 +2642,9 @@ class RibbonSplitButton {
2632
2642
  if (item.splitButtonSettings.click) {
2633
2643
  item.splitButtonSettings.click.call(this, e);
2634
2644
  }
2635
- overflowButton.toggle();
2645
+ if (overflowButton.element.classList.contains('e-active')) {
2646
+ overflowButton.toggle();
2647
+ }
2636
2648
  };
2637
2649
  splitbutton.close = (e) => {
2638
2650
  if (item.splitButtonSettings.close) {
@@ -2640,7 +2652,9 @@ class RibbonSplitButton {
2640
2652
  }
2641
2653
  splitbutton['wrapper'].classList.remove(RIBBON_POPUP_OPEN);
2642
2654
  if (target && !target.closest('.e-ribbon-group-overflow-ddb')) {
2643
- overflowButton.toggle();
2655
+ if (overflowButton.element.classList.contains('e-active')) {
2656
+ overflowButton.toggle();
2657
+ }
2644
2658
  }
2645
2659
  };
2646
2660
  }
@@ -3529,7 +3543,9 @@ class RibbonGroupButton {
3529
3543
  targetEle.onclick = () => {
3530
3544
  if (this.parent.activeLayout === 'Simplified' && targetEle.closest('.e-ribbon-dropdown-group-button').classList.contains(RIBBON_GROUP_BUTTON_OVERFLOW_POPUP)) {
3531
3545
  dropdown.toggle();
3532
- overflowButton.toggle();
3546
+ if (overflowButton.element.classList.contains('e-active')) {
3547
+ overflowButton.toggle();
3548
+ }
3533
3549
  }
3534
3550
  };
3535
3551
  }