Skip to content

Commit

Permalink
fix(list): 修复滚动滑动触底报错问题 (#2658)
Browse files Browse the repository at this point in the history

---------

Co-authored-by: zhangyuanliang <[email protected]>
  • Loading branch information
zhangyuanliang and zhangyuanliang authored Nov 20, 2023
1 parent 874fbb4 commit 8c06310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/packages/__VUE/list/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ export default create({
state.scrollTop = scrollTop;
};
initCachedPosition();
watch(
() => props.listData,
(val: any[]) => {
Expand Down
2 changes: 2 additions & 0 deletions src/packages/__VUE/list/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ export default create({
state.scrollTop = scrollTop;
};
initCachedPosition();
watch(
() => props.listData,
(val: any[]) => {
Expand Down

0 comments on commit 8c06310

Please sign in to comment.