File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,14 @@ const SelectComponent = <T extends GenericOption<DefaultOptionValue>[]>(
6161 } = props ;
6262
6363 assert < Equals < keyof typeof rest , never > > ( ) ;
64- const selectIdExplicitelyProvided = nativeSelectProps ?. id ;
6564 const { selectId, stateDescriptionId } = ( function useClosure ( ) {
65+ const selectIdExplicitelyProvided = nativeSelectProps ?. id ;
6666 const elementId = useId ( ) ;
6767 const selectId = selectIdExplicitelyProvided ?? `select-${ elementId } ` ;
68- const stateDescriptionId = selectIdExplicitelyProvided
69- ? `${ selectIdExplicitelyProvided } -desc`
70- : `select-${ elementId } -desc` ;
68+ const stateDescriptionId =
69+ selectIdExplicitelyProvided !== undefined
70+ ? `${ selectIdExplicitelyProvided } -desc`
71+ : `select-${ elementId } -desc` ;
7172
7273 return { selectId, stateDescriptionId } ;
7374 } ) ( ) ;
You can’t perform that action at this time.
0 commit comments