@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.
@@ -7366,7 +7366,7 @@ let Component = class Component extends Base {
7366
7366
  */
7367
7367
  attachUnloadEvent() {
7368
7368
  this.handleUnload = this.handleUnload.bind(this);
7369
- window.addEventListener('unload', this.handleUnload);
7369
+ window.addEventListener('pagehide', this.handleUnload);
7370
7370
  }
7371
7371
  /**
7372
7372
  * Handling unload event to persist data when enable persistence true
@@ -7382,7 +7382,7 @@ let Component = class Component extends Base {
7382
7382
  * @returns {void}
7383
7383
  */
7384
7384
  detachUnloadEvent() {
7385
- window.removeEventListener('unload', this.handleUnload);
7385
+ window.removeEventListener('pagehide', this.handleUnload);
7386
7386
  }
7387
7387
  /**
7388
7388
  * Appends the control within the given HTML element