Skip to content

Commit fefdf74

Browse files
committed
1 parent fa3654a commit fefdf74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adminforth/spa/src/afcl/Select.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ onMounted(() => {
287287
// Add scroll listeners if teleportToBody is true
288288
if (props.teleportToBody) {
289289
window.addEventListener('scroll', handleScroll, true);
290+
window.addEventListener('resize', handleScroll);
290291
}
291292
});
292293
@@ -349,6 +350,7 @@ onUnmounted(() => {
349350
// Remove scroll listeners if teleportToBody is true
350351
if (props.teleportToBody) {
351352
window.removeEventListener('scroll', handleScroll, true);
353+
window.removeEventListener('resize', handleScroll);
352354
}
353355
if (searchDebounceHandle) {
354356
clearTimeout(searchDebounceHandle);

0 commit comments

Comments
 (0)