【发布时间】:2020-06-17 05:22:45
【问题描述】:
我正在使用 React Antd v3 并将其升级到 v4,我注意到一个问题,其中自动完成组件已更改,现在它的行为方式很奇怪
传递一个[{value: string, label: 123}]的json数组,一切正常,除了在值选择时,显示值(不是标签)
如何改为显示标签并将所选值保留为选项值?
Here is a link that shows the problem in a sandbox
Another link where passing array of Options also doesn't work correctly
注意:
它在 Ant v3 中运行良好,as shown in this link
【问题讨论】: