Skip to content

🐛[BUG]ProForm使用formSchema时,下拉菜单使用showSearch与labelInValue选择报错 #9379

@AburronKing

Description

@AburronKing

🐛 bug 描述

ProForm使用formSchema时,下拉菜单使用showSearch与labelInValue,正常情况下选择可以使用。
问题:当你选择一个选项后,你清除已选项,使用搜索功能,选中搜索的项后,就会报错:

Image

💻 复现代码

formColumn:

{
title: '供货商',
dataIndex: 'supplierId',
valueType: 'select',
fieldProps: {
labelInValue: true,
showSearch: true,
},
width: 'm',
request: async () => {
const res = await querySupplier({
pageNum: 1,
pageSize: 1000,
});
return res.data.list.map((item: Recordable) => {
return {
label: item.supplierName,
value: item.supplierId,
};
});
},
},

© 版本信息

  • ProComponents 版本: [3.0.0-beta.3]
  • 浏览器环境 【谷歌】
  • 开发环境 [mac OS]

🚑 其他信息

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions