@@ -205,9 +205,7 @@ export interface BaseSelectProps extends BaseSelectPrivateProps, React.AriaAttri
205205 onClick ?: React . MouseEventHandler < HTMLDivElement > ;
206206}
207207
208- export function isMultiple ( mode : Mode ) {
209- return mode === 'tags' || mode === 'multiple' ;
210- }
208+ export const isMultiple = ( mode : Mode ) => mode === 'tags' || mode === 'multiple' ;
211209
212210const BaseSelect = React . forwardRef < BaseSelectRef , BaseSelectProps > ( ( props , ref ) => {
213211 const {
@@ -293,7 +291,7 @@ const BaseSelect = React.forwardRef<BaseSelectRef, BaseSelectProps>((props, ref)
293291
294292 const domProps = {
295293 ...restProps ,
296- } as Omit < keyof typeof restProps , ( typeof DEFAULT_OMIT_PROPS ) [ number ] > ;
294+ } ;
297295
298296 DEFAULT_OMIT_PROPS . forEach ( ( propName ) => {
299297 delete domProps [ propName ] ;
@@ -400,10 +398,10 @@ const BaseSelect = React.forwardRef<BaseSelectRef, BaseSelectProps>((props, ref)
400398 let newSearchText = searchText ;
401399 onActiveValueChange ?.( null ) ;
402400
401+ const separatedList = getSeparatedContent ( searchText , tokenSeparators ) ;
402+
403403 // Check if match the `tokenSeparators`
404- const patchLabels : string [ ] = isCompositing
405- ? null
406- : getSeparatedContent ( searchText , tokenSeparators ) ;
404+ const patchLabels : string [ ] = isCompositing ? null : separatedList ;
407405
408406 // Ignore combobox since it's not split-able
409407 if ( mode !== 'combobox' && patchLabels ) {
0 commit comments