浏览代码

修改搜索

Renxy 2 年之前
父节点
当前提交
6c5ffdfdbc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/DDComponents/ProjectField/index.js

+ 1 - 1
src/components/DDComponents/ProjectField/index.js

@@ -22,7 +22,7 @@ function DDProjectField(props) {
         onChange(String(value));
       }}
       filterOption={(input, option) =>
-        option.children.join('').toLowerCase().includes(input.toLowerCase())
+        (option?.label ?? '').toLowerCase().includes(input.toLowerCase())
       }
       options={projectList.map((item) => {
         return {