@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.
@@ -19166,23 +19166,18 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
19166
19166
  }
19167
19167
  };
19168
19168
  Stepper.prototype.wireEvents = function () {
19169
- var _this = this;
19170
- EventHandler.add(window, 'resize', function () {
19171
- if (_this.stepperItemList && _this.progressbar && _this.element.classList.contains(HORIZSTEP)) {
19172
- _this.setProgressPosition(_this.element, true);
19173
- }
19174
- _this.navigateToStep(_this.activeStep, null, null, false);
19175
- }, this);
19176
- EventHandler.add(window, 'click', function () { _this.updateStepFocus(); }, this);
19169
+ EventHandler.add(window, 'resize', this.updateResize, this);
19170
+ EventHandler.add(window, 'click', this.updateStepFocus, this);
19177
19171
  };
19178
19172
  Stepper.prototype.unWireEvents = function () {
19179
- var _this = this;
19180
- EventHandler.remove(window, 'resize', function () {
19181
- if (_this.stepperItemList && _this.progressbar && _this.element.classList.contains(HORIZSTEP)) {
19182
- _this.setProgressPosition(_this.element, true);
19183
- }
19184
- });
19185
- EventHandler.remove(window, 'click', function () { _this.updateStepFocus(); });
19173
+ EventHandler.remove(window, 'resize', this.updateResize);
19174
+ EventHandler.remove(window, 'click', this.updateStepFocus);
19175
+ };
19176
+ Stepper.prototype.updateResize = function () {
19177
+ if (this.stepperItemList && this.progressbar && this.element.classList.contains(HORIZSTEP)) {
19178
+ this.setProgressPosition(this.element, true);
19179
+ }
19180
+ this.navigateToStep(this.activeStep, null, null, false);
19186
19181
  };
19187
19182
  Stepper.prototype.updateStepFocus = function () {
19188
19183
  if (this.isKeyNavFocus) {