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

autocomplete: 当label是一个 ReactNode时,onChange会触发“label of value is not same as label in Select options”警告 #43637

Closed
Lancernix opened this issue Jul 19, 2023 · 2 comments
Assignees
Labels
4.x In Ant Design 4.0 🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@Lancernix
Copy link

Lancernix commented Jul 19, 2023

Reproduction link

Edit on CodeSandbox

Steps to reproduce

输入后选择一个选项

What is expected?

消除警告

What is actually happening?

有警告

Environment Info
antd 4.24.12
React 18.0.0 / 16.14.0
System MacOS
Browser Chrome 102

这个问题已经有issue提到过,问题出现在rc-select这个基础组件中。rc-select v14.5.2 已经修复了这个问题,但是目前antd4.24.x使用的rc-select版本固定为14.1.x,后续是否会在antd4.x中升级使用的基础组件版本来修复这个问题?
ref: issue#946, issue#40205

@MadCcc
Copy link
Member

MadCcc commented Jul 19, 2023

4.x 应该不会升级 rc-select 了,应该给 rc-select 14.1.x 发个 patch

@MadCcc MadCcc added 🐛 Bug Ant Design Team had proved that this is a bug. 4.x In Ant Design 4.0 and removed unconfirmed labels Jul 19, 2023
@Wxh16144 Wxh16144 self-assigned this Jul 19, 2023
@MadCcc MadCcc closed this as completed Jul 26, 2023
@yoyo837
Copy link
Contributor

yoyo837 commented Jul 26, 2023

https://github.com/react-component/select/releases/tag/v14.1.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x In Ant Design 4.0 🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

4 participants