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

🐛[BUG] ProFormCascader组件的只读模式在部分情况下回显错误 #9023

Open
liujiayii opened this issue Feb 19, 2025 · 0 comments

Comments

@liujiayii
Copy link
Contributor

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

https://github.com/ant-design/pro-components/blob/master/packages/field/src/components/Cascader/index.tsx#L83

这里使用了Map来存放级联选择器中所有层级的[value, label],如果不同层级中的value重复,就会发生覆盖情况,导致回显错误

📷 复现步骤

🏞 期望结果

💻 复现代码

© 版本信息

  • ProComponents 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

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

No branches or pull requests

1 participant