Skip to content

Commit bb50c21

Browse files
authored
fix(bubble): fix list auto scroll no work on init (#427)
1 parent 6166988 commit bb50c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bubble/BubbleList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const onInternalScroll = (e: Event) => {
107107
);
108108
};
109109
110-
watch(updateCount, () => {
110+
watch([updateCount, listRef, scrollReachEnd], () => {
111111
if (autoScroll && unref(listRef) && unref(scrollReachEnd)) {
112112
nextTick(() => {
113113
unref(listRef).scrollTo({

0 commit comments

Comments
 (0)