@@ -411,12 +411,12 @@ export const groupMultiselect = <Options extends Option<Value>[], Value extends
411
411
| 'group-active-selected'
412
412
| 'submitted'
413
413
| 'cancelled' ,
414
- options : Options = [ ] as any
414
+ options : Options [ number ] [ ] = [ ] as any
415
415
) => {
416
416
const label = option . label ?? String ( option . value ) ;
417
- const isItem = typeof option . group === 'string' ;
417
+ const isItem = typeof ( option as any ) . group === 'string' ;
418
418
const next = isItem && ( options [ options . indexOf ( option ) + 1 ] ?? { group : true } ) ;
419
- const isLast = isItem && next . group === true ;
419
+ const isLast = isItem && ( next as any ) . group === true ;
420
420
const prefix = isItem ? `${ isLast ? S_BAR_END : S_BAR } ` : '' ;
421
421
422
422
if ( state === 'active' ) {
@@ -486,7 +486,7 @@ export const groupMultiselect = <Options extends Option<Value>[], Value extends
486
486
. map ( ( option , i , options ) => {
487
487
const selected =
488
488
this . value . includes ( option . value ) ||
489
- ( option . group === true && this . isGroupSelected ( option . value ) ) ;
489
+ ( option . group === true && this . isGroupSelected ( ` ${ option . value } ` ) ) ;
490
490
const active = i === this . cursor ;
491
491
const groupActive =
492
492
! active &&
@@ -510,7 +510,7 @@ export const groupMultiselect = <Options extends Option<Value>[], Value extends
510
510
. map ( ( option , i , options ) => {
511
511
const selected =
512
512
this . value . includes ( option . value ) ||
513
- ( option . group === true && this . isGroupSelected ( option . value ) ) ;
513
+ ( option . group === true && this . isGroupSelected ( ` ${ option . value } ` ) ) ;
514
514
const active = i === this . cursor ;
515
515
const groupActive =
516
516
! active &&
0 commit comments