@syncfusion/ej2-base 25.2.3 → 25.2.5

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.
@@ -7420,7 +7420,7 @@ var Component = /** @__PURE__ @class */ (function (_super) {
7420
7420
  */
7421
7421
  Component.prototype.attachUnloadEvent = function () {
7422
7422
  this.handleUnload = this.handleUnload.bind(this);
7423
- window.addEventListener('unload', this.handleUnload);
7423
+ window.addEventListener('pagehide', this.handleUnload);
7424
7424
  };
7425
7425
  /**
7426
7426
  * Handling unload event to persist data when enable persistence true
@@ -7436,7 +7436,7 @@ var Component = /** @__PURE__ @class */ (function (_super) {
7436
7436
  * @returns {void}
7437
7437
  */
7438
7438
  Component.prototype.detachUnloadEvent = function () {
7439
- window.removeEventListener('unload', this.handleUnload);
7439
+ window.removeEventListener('pagehide', this.handleUnload);
7440
7440
  };
7441
7441
  /**
7442
7442
  * Appends the control within the given HTML element