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

cascader在选择事件时加一个防抖 #356

Open
xiaoLee9547 opened this issue Jun 18, 2024 · 2 comments · May be fixed by #404
Open

cascader在选择事件时加一个防抖 #356

xiaoLee9547 opened this issue Jun 18, 2024 · 2 comments · May be fixed by #404

Comments

@xiaoLee9547
Copy link

xiaoLee9547 commented Jun 18, 2024

nutui-uniapp 版本号

1.7.10

平台

weapp

重现链接

https://uniapp-nutui.tech/components/dentry/cascader.html

重现步骤

官网第一个示例,如果我选择了福建之后,在关联项还没加载出来的时候很快的选中了浙江。选中的是福建,带出来的选择值是浙江的下级
95934ad1b842b147d458a662e3f47ad2

期望的结果是什么?

正常渲染福建

实际的结果是什么?

渲染了浙江的下级

环境信息

No response

其他补充信息

No response

@yang1206
Copy link
Member

请问关联项还没加载出来指的是动态加载吗,非动态options应该不会出现加载的情况

@xiaoLee9547
Copy link
Author

这个是官网的示例,数据为静态数据。复现细节为:1.点击福建 2.尽可能快的在福建的下级还没渲染出来(tabs的动画执行完)之前点击浙江 4.此时你会看见上面选中的是福建,但是加载出来的数据源已经切换到了最后一次点击的浙江的下级了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants