Skip to content

Commit

Permalink
fix(infiniteLoading): rest 导致事件无法触发 (#2474)
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud authored Jul 23, 2024
1 parent 56302dc commit f40fb4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/packages/infiniteloading/demos/taro/demo1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ const Demo1 = () => {
target="scroll"
hasMore={hasMore}
onLoadMore={loadMore}
onScroll={() => {
console.log('onScroll')
}}
onScrollToUpper={() => {
console.log('onScrollToUpper')
}}
loadingText={
<>
{renderJoyImg}
Expand Down
2 changes: 1 addition & 1 deletion src/packages/infiniteloading/infiniteloading.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export const InfiniteLoading: FunctionComponent<

return (
<ScrollView
{...rest}
className={classes}
scrollY
id="scroller"
Expand All @@ -177,7 +178,6 @@ export const InfiniteLoading: FunctionComponent<
onTouchStart={touchStart}
onTouchMove={touchMove}
onTouchEnd={touchEnd}
{...rest}
>
<div className="nut-infinite-top" ref={refreshTop} style={getStyle()}>
<div className="nut-infinite-top-tips">
Expand Down

0 comments on commit f40fb4d

Please sign in to comment.