ant-design/pro-components

🐛[BUG]ProFormSelect 异步任务获取Options,值回填不正常

Closed this issue · 2 comments

bxter commented

ProFormSelect组件的使用中,关于值回填的问题,如下,
如果采用直接同步方式,逻辑显示是正常的,但是如果我获取options的数组值是通过远程服务端而来,那么就回填不出来labels
不知道如何处理了。

image image image

这个是不是有什么bug存在,或者是有我不知道的设置方式可以处理这种远程调用的问题么

十分感谢你的帮助!!

First of all, make sure that there is no mismatch in types between options ids an corresponding keys in multiselect value
For example: string '1' is not strictly equal 1 and so on

bxter commented

我懂了,thks