Skip to content

Commit

Permalink
feat(select): renderContent support new search style
Browse files Browse the repository at this point in the history
  • Loading branch information
窦婷婷 authored and WangLin committed Aug 15, 2023
1 parent 1a75a95 commit 4cbac17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Select/Select.tsx
Expand Up @@ -1399,7 +1399,7 @@ const Select = ({
return hasSubGroup;
}, [dataSource]);
// 多层数据/搜索且自定义 selector/自定义渲染内容时,无法兼容,回滚到老版本
const [v1] = useState(() => hasSubGroup || !!(search && (renderContent || renderSelector)));
const [v1] = useState(() => hasSubGroup || !!(search && renderSelector));
const handleOnChange = useCallback(
(v: Key | Key[] | undefined) => {
onChange(v);
Expand Down

0 comments on commit 4cbac17

Please sign in to comment.