@syncfusion/ej2-navigations 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.
@@ -3016,6 +3016,13 @@ let MenuBase = class MenuBase extends Component {
3016
3016
  }
3017
3017
  }
3018
3018
  toggleAnimation(ul, isMenuOpen = true) {
3019
+ const menuWrapper = this.getWrapper();
3020
+ if (menuWrapper) {
3021
+ const activeMenuElements = menuWrapper.querySelectorAll('.e-menu-parent');
3022
+ activeMenuElements.forEach((menuElement) => {
3023
+ Animation.stop(menuElement);
3024
+ });
3025
+ }
3019
3026
  let pUlHeight;
3020
3027
  let pElement;
3021
3028
  const animateElement = (this.enableScrolling && !this.isMenu && closest(ul, '.e-menu-vscroll'))
@@ -3826,11 +3833,15 @@ let Toolbar = class Toolbar extends Component {
3826
3833
  }
3827
3834
  if (this.tbarAlign) {
3828
3835
  const tbarItems = this.element.querySelector('.' + CLS_ITEMS);
3829
- [].slice.call(tbarItems.children).forEach((el) => {
3830
- detach(el);
3831
- });
3836
+ if (tbarItems) {
3837
+ if (tbarItems.children) {
3838
+ [].slice.call(tbarItems.children).forEach((el) => {
3839
+ detach(el);
3840
+ });
3841
+ }
3842
+ this.remove(tbarItems, CLS_TBARPOS);
3843
+ }
3832
3844
  this.tbarAlign = false;
3833
- this.remove(tbarItems, CLS_TBARPOS);
3834
3845
  }
3835
3846
  this.clearProperty();
3836
3847
  }
@@ -4250,10 +4261,10 @@ let Toolbar = class Toolbar extends Component {
4250
4261
  */
4251
4262
  render() {
4252
4263
  this.initialize();
4253
- this.renderControl();
4254
- this.wireEvents();
4255
4264
  this.clickEvent = this.docEvent.bind(this);
4256
4265
  this.scrollEvent = this.docEvent.bind(this);
4266
+ this.renderControl();
4267
+ this.wireEvents();
4257
4268
  this.renderComplete();
4258
4269
  if (this.isReact && this.portals && this.portals.length > 0) {
4259
4270
  this.renderReactTemplates(() => {
@@ -8306,8 +8317,11 @@ let Tab = class Tab extends Component {
8306
8317
  this.tbItems.appendChild(target);
8307
8318
  this.actEleId = target.id;
8308
8319
  if (this.checkPopupOverflow(lastChild)) {
8309
- const prevEle = this.tbItems.lastChild.previousElementSibling;
8310
- this.checkPopupOverflow(prevEle);
8320
+ let prevEle = this.tbItems.lastChild.previousElementSibling;
8321
+ prevEle = (prevEle && prevEle.classList.contains(CLS_INDICATOR) ? prevEle.previousElementSibling : prevEle);
8322
+ if (prevEle) {
8323
+ this.checkPopupOverflow(prevEle);
8324
+ }
8311
8325
  }
8312
8326
  this.isPopup = true;
8313
8327
  }
@@ -17308,10 +17322,10 @@ let Breadcrumb = class Breadcrumb extends Component {
17308
17322
  onPropertyChanged(newProp, oldProp) {
17309
17323
  for (const prop of Object.keys(newProp)) {
17310
17324
  switch (prop) {
17311
- case 'items':
17312
17325
  case 'enableActiveItemNavigation':
17313
17326
  this.reRenderItems();
17314
17327
  break;
17328
+ case 'items':
17315
17329
  case 'activeItem':
17316
17330
  this._maxItems = this.maxItems;
17317
17331
  this.initPvtProps();