@syncfusion/ej2-navigations 26.2.11 → 26.2.12

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.
@@ -18654,21 +18654,18 @@ let Stepper = class Stepper extends StepperBase {
18654
18654
  }
18655
18655
  }
18656
18656
  wireEvents() {
18657
- EventHandler.add(window, 'resize', () => {
18658
- if (this.stepperItemList && this.progressbar && this.element.classList.contains(HORIZSTEP)) {
18659
- this.setProgressPosition(this.element, true);
18660
- }
18661
- this.navigateToStep(this.activeStep, null, null, false);
18662
- }, this);
18663
- EventHandler.add(window, 'click', () => { this.updateStepFocus(); }, this);
18657
+ EventHandler.add(window, 'resize', this.updateResize, this);
18658
+ EventHandler.add(window, 'click', this.updateStepFocus, this);
18664
18659
  }
18665
18660
  unWireEvents() {
18666
- EventHandler.remove(window, 'resize', () => {
18667
- if (this.stepperItemList && this.progressbar && this.element.classList.contains(HORIZSTEP)) {
18668
- this.setProgressPosition(this.element, true);
18669
- }
18670
- });
18671
- EventHandler.remove(window, 'click', () => { this.updateStepFocus(); });
18661
+ EventHandler.remove(window, 'resize', this.updateResize);
18662
+ EventHandler.remove(window, 'click', this.updateStepFocus);
18663
+ }
18664
+ updateResize() {
18665
+ if (this.stepperItemList && this.progressbar && this.element.classList.contains(HORIZSTEP)) {
18666
+ this.setProgressPosition(this.element, true);
18667
+ }
18668
+ this.navigateToStep(this.activeStep, null, null, false);
18672
18669
  }
18673
18670
  updateStepFocus() {
18674
18671
  if (this.isKeyNavFocus) {