adminforth 2.27.0 → 2.28.0
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);
|