Skip to content

Commit 9692325

Browse files
authored
chore: add multiple when onInternalSearch (#1019)
1 parent 72f6eac commit 9692325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BaseSelect.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ const BaseSelect = React.forwardRef<BaseSelectRef, BaseSelectProps>((props, ref)
399399
const { maxCount, rawValues } = React.useContext<SelectContextProps>(SelectContext) || {};
400400

401401
const onInternalSearch = (searchText: string, fromTyping: boolean, isCompositing: boolean) => {
402-
if (isValidCount(maxCount) && rawValues?.size >= maxCount) {
402+
if (multiple && isValidCount(maxCount) && rawValues?.size >= maxCount) {
403403
return;
404404
}
405405
let ret = true;

0 commit comments

Comments
 (0)