Skip to content
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

[Select] 展开滑动到底部加载下一页的loading状态情形中,希望有选项支持不隐藏之前的options。 #3086

Closed
qinbx opened this issue Sep 9, 2024 · 2 comments

Comments

@qinbx
Copy link

qinbx commented Sep 9, 2024

这个功能解决了什么问题

在下拉到底时自动加载下一页数据的情形中

问题:目前loading为true时也下拉框之前的选项内容会被隐藏,导致加载完下一页的数据后,下拉框又跑到了顶部,需要手动再往下拉,体验不好。

重现链接:https://stackblitz.com/edit/react-2lgttk?file=src%2Fdemo.tsx,src%2Findex.js

你建议的方案是什么

期望:增加选项,以达到在示loding状态时,现有的options不隐藏。

Copy link
Contributor

github-actions bot commented Sep 9, 2024

👋 @qinbx,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn
Copy link
Collaborator

uyarn commented Sep 26, 2024

这个感觉不太合适用loading来实现,loading本意就是选项重新加载的交互,建议参考这个示例 用Scorlltobottom回调来新增选项实现更好 https://tdesign.tencent.com/react/components/select#%E9%80%9A%E8%BF%87%E6%BB%9A%E5%8A%A8%E4%BA%8B%E4%BB%B6%E5%8A%A0%E8%BD%BD%E9%80%89%E9%A1%B9%E7%9A%84%E9%80%89%E6%8B%A9%E5%99%A8

@uyarn uyarn added the usage label Sep 26, 2024
@uyarn uyarn closed this as completed Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants