adminforth 2.27.0 → 2.28.1

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.
@@ -287,6 +287,7 @@ onMounted(() => {
287
287
  // Add scroll listeners if teleportToBody is true
288
288
  if (props.teleportToBody) {
289
289
  window.addEventListener('scroll', handleScroll, true);
290
+ window.addEventListener('resize', handleScroll);
290
291
  }
291
292
  });
292
293
 
@@ -349,6 +350,7 @@ onUnmounted(() => {
349
350
  // Remove scroll listeners if teleportToBody is true
350
351
  if (props.teleportToBody) {
351
352
  window.removeEventListener('scroll', handleScroll, true);
353
+ window.removeEventListener('resize', handleScroll);
352
354
  }
353
355
  if (searchDebounceHandle) {
354
356
  clearTimeout(searchDebounceHandle);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.27.0",
3
+ "version": "2.28.1",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",