Skip to content

Commit 886e490

Browse files
[Manager] Fix flush timing issue when switching tabs (#4253)
1 parent 24cbc41 commit 886e490

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/common/VirtualGrid.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const updateItemSize = () => {
106106
}
107107
const onResize = debounce(updateItemSize, resizeDebounce)
108108
watch([width, height], onResize, { flush: 'post' })
109-
whenever(() => items, updateItemSize)
109+
whenever(() => items, updateItemSize, { flush: 'post' })
110110
onBeforeUnmount(() => {
111111
onResize.cancel() // Clear pending debounced calls
112112
})

src/components/dialog/content/manager/ManagerDialogContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<VirtualGrid
6060
id="results-grid"
6161
:items="resultsWithKeys"
62-
:buffer-rows="3"
62+
:buffer-rows="4"
6363
:grid-style="GRID_STYLE"
6464
@approach-end="onApproachEnd"
6565
>

0 commit comments

Comments
 (0)