@syncfusion/ej2-ribbon 30.1.39 → 30.1.42

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.
@@ -4764,14 +4764,16 @@ let Ribbon = Ribbon_1 = class Ribbon extends Component {
4764
4764
  }
4765
4765
  resizeHandler() {
4766
4766
  const activeContent = this.tabObj.element.querySelector('#' + this.tabs[this.selectedTab].id + CONTENT_ID);
4767
- this.checkOverflow(this.selectedTab, activeContent);
4767
+ if (!isNullOrUndefined(activeContent)) {
4768
+ this.checkOverflow(this.selectedTab, activeContent);
4769
+ }
4768
4770
  if (this.scrollModule) {
4769
4771
  const scrollEle = this.tabObj.element.querySelector('.' + HORIZONTAL_SCROLLBAR);
4770
4772
  this.scrollModule.scrollStep = scrollEle.offsetWidth;
4771
4773
  }
4772
4774
  if (this.activeLayout === 'Simplified') {
4773
4775
  const activePopup = document.querySelectorAll('.e-ribbon .e-dropdown-btn.e-active, .e-ribbon-group-overflow-ddb .e-dropdown-btn.e-active');
4774
- if (activePopup.length) {
4776
+ if (!isNullOrUndefined(activePopup) && activePopup.length) {
4775
4777
  for (let i = 0; i < activePopup.length; i++) {
4776
4778
  const dropDownBtn = getInstance(activePopup[parseInt(i.toString(), 10)], DropDownButton);
4777
4779
  dropDownBtn.toggle();