Skip to content

Commit

Permalink
chore: add multiple when onInternalSearch (#1019)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan authored Mar 1, 2024
1 parent 72f6eac commit 9692325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ const BaseSelect = React.forwardRef<BaseSelectRef, BaseSelectProps>((props, ref)
const { maxCount, rawValues } = React.useContext<SelectContextProps>(SelectContext) || {};

const onInternalSearch = (searchText: string, fromTyping: boolean, isCompositing: boolean) => {
if (isValidCount(maxCount) && rawValues?.size >= maxCount) {
if (multiple && isValidCount(maxCount) && rawValues?.size >= maxCount) {
return;
}
let ret = true;
Expand Down

0 comments on commit 9692325

Please sign in to comment.