We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
多选模式,开启labelInValue属性,在选中搜索匹配项目,填充到输入框的内容就包含了高亮的样式
原因我已经找到了,我晚点提个 PR 看下
下面的代码可以复现
启用 labelInValue,多选模式,就会出现上图的问题
import { ProFormSelect, ProForm } from '@ant-design/pro-components'; import { Select } from 'antd'; import React from 'react'; const selectOptions = [ { label: '选项1', value: '1' }, { label: '选项2', value: '2' }, { label: '选项3', value: '3' }, { label: '选项4', value: '4' }, ] export default () => { const [form] = ProForm.useForm(); return ( <ProForm form={form}> <ProFormSelect fieldProps={{ mode: 'multiple', disabled: false, placeholder: '请选择', labelInValue: true, showSearch: true, optionFilterProp: 'label', }} options={selectOptions} name='support' label='负责人' rules={[{ required: true, message: '请选择负责人' }]} /> </ProForm> ); };
填充到输入框的内容不包含高亮的样式
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
🐛 bug 描述
多选模式,开启labelInValue属性,在选中搜索匹配项目,填充到输入框的内容就包含了高亮的样式
原因我已经找到了,我晚点提个 PR 看下
📷 复现步骤
下面的代码可以复现
启用 labelInValue,多选模式,就会出现上图的问题
🏞 期望结果
填充到输入框的内容不包含高亮的样式
💻 复现代码
© 版本信息
🚑 其他信息
The text was updated successfully, but these errors were encountered: