Skip to content

Commit 2ea36bb

Browse files
committed
fix: warning logic
1 parent 9cc99c3 commit 2ea36bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/warningPropsUtil.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ function warningProps(props: SelectProps) {
2626
optionLabelProp,
2727
} = props;
2828

29-
const mergedShowSearch =
30-
showSearch !== undefined ? showSearch : mode === 'tags' || mode === 'combobox';
3129
const multiple = mode === 'multiple' || mode === 'tags';
30+
const mergedShowSearch = showSearch !== undefined ? showSearch : multiple || mode === 'combobox';
3231
const mergedOptions = options || convertChildrenToData(children);
3332

3433
// `tags` should not set option as disabled

0 commit comments

Comments
 (0)