Skip to content

使用react-infinite-scroll-component实现bubble.list的向上滚动加载 #634

@liulangdelimao

Description

@liulangdelimao

重现步骤

在线示例链接:(必填)

步骤:
1.使用InfiniteScroll将Bubble.List包裹,设置inverse={true}
2.bubble.list增加样式display: "flex", flexDirection: "column-reverse" 对文本进行反转

当前行为

反转后 在发送请求后 发送的内容和回复都会在最上面渲染
如果不反转的话 因为他是流加载,加载更多的时候就会将内容往下挤 无法计算滚动的高度进行回复

预期行为

加载更多时 内容向上加载

上下文

消息记录向上滚动加载更多

版本

1.0.6

您在哪些浏览器上遇到了这个问题?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions