@syncfusion/ej2-ribbon 30.1.39 → 30.1.41

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.
@@ -5204,14 +5204,16 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5204
5204
  };
5205
5205
  Ribbon.prototype.resizeHandler = function () {
5206
5206
  var activeContent = this.tabObj.element.querySelector('#' + this.tabs[this.selectedTab].id + CONTENT_ID);
5207
- this.checkOverflow(this.selectedTab, activeContent);
5207
+ if (!isNullOrUndefined(activeContent)) {
5208
+ this.checkOverflow(this.selectedTab, activeContent);
5209
+ }
5208
5210
  if (this.scrollModule) {
5209
5211
  var scrollEle = this.tabObj.element.querySelector('.' + HORIZONTAL_SCROLLBAR);
5210
5212
  this.scrollModule.scrollStep = scrollEle.offsetWidth;
5211
5213
  }
5212
5214
  if (this.activeLayout === 'Simplified') {
5213
5215
  var activePopup = document.querySelectorAll('.e-ribbon .e-dropdown-btn.e-active, .e-ribbon-group-overflow-ddb .e-dropdown-btn.e-active');
5214
- if (activePopup.length) {
5216
+ if (!isNullOrUndefined(activePopup) && activePopup.length) {
5215
5217
  for (var i = 0; i < activePopup.length; i++) {
5216
5218
  var dropDownBtn = getInstance(activePopup[parseInt(i.toString(), 10)], DropDownButton);
5217
5219
  dropDownBtn.toggle();