From c69afdf974d97f2e3587467607e82c3739938b69 Mon Sep 17 00:00:00 2001 From: nova1751 Date: Fri, 2 Feb 2024 21:37:24 +0800 Subject: [PATCH] fix: multi-select input editable problem (#1024) --- src/Selector/MultipleSelector.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Selector/MultipleSelector.tsx b/src/Selector/MultipleSelector.tsx index 8ad89025..68ac1639 100644 --- a/src/Selector/MultipleSelector.tsx +++ b/src/Selector/MultipleSelector.tsx @@ -86,9 +86,7 @@ const SelectSelector: React.FC = (props) => { ? searchValue : ''; const inputEditable: boolean = - mode === 'tags' || - (mode === 'multiple' && autoClearSearchValue === false) || - (showSearch && (open || focused)); + mode === 'tags' || (mode === 'multiple' && showSearch) || (showSearch && (open || focused)); // We measure width and set to the input immediately useLayoutEffect(() => {