Skip to content

Commit c69afdf

Browse files
committed
fix: multi-select input editable problem (#1024)
1 parent b190480 commit c69afdf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Selector/MultipleSelector.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ const SelectSelector: React.FC<SelectorProps> = (props) => {
8686
? searchValue
8787
: '';
8888
const inputEditable: boolean =
89-
mode === 'tags' ||
90-
(mode === 'multiple' && autoClearSearchValue === false) ||
91-
(showSearch && (open || focused));
89+
mode === 'tags' || (mode === 'multiple' && showSearch) || (showSearch && (open || focused));
9290

9391
// We measure width and set to the input immediately
9492
useLayoutEffect(() => {

0 commit comments

Comments
 (0)