Skip to content

Commit

Permalink
fix: autoClearSearchValue invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
vaynevayne committed Jun 10, 2023
1 parent 7940e17 commit d6c84c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Select.tsx
Expand Up @@ -544,7 +544,7 @@ const Select = React.forwardRef(
const newRawValues = Array.from(new Set<RawValueType>([...rawValues, formatted]));
triggerChange(newRawValues);
triggerSelect(formatted, true);
setSearchValue('');
if(autoClearSearchValue) setSearchValue('');
}

return;
Expand Down

0 comments on commit d6c84c3

Please sign in to comment.