Skip to content

Commit

Permalink
fix: multi-select input editable problem (react-component#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
nova1751 committed Feb 2, 2024
1 parent b190480 commit c69afdf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Selector/MultipleSelector.tsx
Expand Up @@ -86,9 +86,7 @@ const SelectSelector: React.FC<SelectorProps> = (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(() => {
Expand Down

0 comments on commit c69afdf

Please sign in to comment.