@syncfusion/ej2-navigations 20.2.45 → 20.2.46

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.
@@ -2597,6 +2597,14 @@ let MenuBase = class MenuBase extends Component {
2597
2597
  let item;
2598
2598
  if (!Object.keys(oldProp.items).length) {
2599
2599
  this.updateItem(this.element, this.items);
2600
+ if (this.enableScrolling && this.element.parentElement.classList.contains('e-custom-scroll')) {
2601
+ if (this.element.classList.contains('e-vertical')) {
2602
+ addScrolling(this.createElement, wrapper, this.element, 'vscroll', this.enableRtl);
2603
+ }
2604
+ else {
2605
+ addScrolling(this.createElement, wrapper, this.element, 'hscroll', this.enableRtl);
2606
+ }
2607
+ }
2600
2608
  if (!this.hamburgerMode) {
2601
2609
  for (let i = 1, count = wrapper.childElementCount; i < count; i++) {
2602
2610
  detach(wrapper.lastElementChild);
@@ -2618,14 +2626,6 @@ let MenuBase = class MenuBase extends Component {
2618
2626
  navIdx.length = 0;
2619
2627
  }
2620
2628
  }
2621
- if (this.enableScrolling) {
2622
- if (this.element.classList.contains('e-vertical')) {
2623
- addScrolling(this.createElement, wrapper, this.element, 'vscroll', this.enableRtl);
2624
- }
2625
- else {
2626
- addScrolling(this.createElement, wrapper, this.element, 'hscroll', this.enableRtl);
2627
- }
2628
- }
2629
2629
  break;
2630
2630
  }
2631
2631
  }
@@ -2636,6 +2636,16 @@ let MenuBase = class MenuBase extends Component {
2636
2636
  ul = this.removeChildElement(ul);
2637
2637
  }
2638
2638
  else {
2639
+ if (this.enableScrolling) {
2640
+ const wrapper1 = this.getWrapper();
2641
+ let ul1 = wrapper1.children[0];
2642
+ if (this.element.classList.contains('e-vertical')) {
2643
+ destroyScroll(getInstance(ul1, VScroll), ul1);
2644
+ }
2645
+ else {
2646
+ destroyScroll(getInstance(ul1, HScroll), ul1);
2647
+ }
2648
+ }
2639
2649
  ul.innerHTML = '';
2640
2650
  }
2641
2651
  const lis = [].slice.call(this.createItems(items).children);