fix: multiple select ux

This commit is contained in:
jialin
2025-07-02 11:39:54 +08:00
parent 9e29e7283c
commit 993f01a301
2 changed files with 132 additions and 21 deletions
@@ -60,10 +60,6 @@ const FilterBar: React.FC<FilterBarProps> = (props) => {
const intl = useIntl();
const filterOptions = (inputValue: any, option: any) => {
return option.label?.toLowerCase().includes(inputValue.toLowerCase());
};
return (
<FilterWrapper>
<div className="selection">
@@ -86,7 +82,6 @@ const FilterBar: React.FC<FilterBarProps> = (props) => {
mode="multiple"
options={userList}
maxTagCount={0}
filterOption={filterOptions}
placeholder={intl.formatMessage({
id: 'dashboard.usage.selectuser'
})}
@@ -100,7 +95,6 @@ const FilterBar: React.FC<FilterBarProps> = (props) => {
mode="multiple"
options={modelList}
maxTagCount={0}
filterOption={filterOptions}
placeholder={intl.formatMessage({
id: 'dashboard.usage.selectmodel'
})}