Skip to content

fix(taro-components-advanced): 修复VirtualWaterfall组件设置renderTop/Bottom后onScrollToLower/Upper无法触发的问题 #17697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 27, 2025
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,18 @@ function getRenderExpandNodes ({
const props: any = {
key: id,
id,
}
if (!renderExpand) {
props.style = {
style: {
visibility: 'hidden',
height: 100,
marginTop: -100,
zIndex: -1,
}
}
return React.createElement(
renderExpand || innerElement,
props,
)
const expands = [renderExpand && React.createElement(renderExpand), React.createElement(innerElement!, props)]
if (direction === 'top') {
expands.reverse()
}
return expands
}

const outerWrapper = React.forwardRef(
Expand Down