File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,6 @@ export class MatListOption extends _MatListOptionMixinBase
300
300
'role' : 'listbox' ,
301
301
'[tabIndex]' : 'tabIndex' ,
302
302
'class' : 'mat-selection-list mat-list-base' ,
303
- '(focus)' : 'focus()' ,
304
303
'(blur)' : '_onTouched()' ,
305
304
'(keydown)' : '_keydown($event)' ,
306
305
'aria-multiselectable' : 'true' ,
@@ -416,7 +415,7 @@ export class MatSelectionList extends _MatSelectionListMixinBase implements Focu
416
415
this . _modelChanges . unsubscribe ( ) ;
417
416
}
418
417
419
- /** Focuses the last active list option . */
418
+ /** Focuses the selection list. */
420
419
focus ( ) {
421
420
this . _element . nativeElement . focus ( ) ;
422
421
}
@@ -446,9 +445,9 @@ export class MatSelectionList extends _MatSelectionListMixinBase implements Focu
446
445
if ( optionIndex > - 1 && this . _keyManager . activeItemIndex === optionIndex ) {
447
446
// Check whether the option is the last item
448
447
if ( optionIndex > 0 ) {
449
- this . _keyManager . updateActiveItemIndex ( optionIndex - 1 ) ;
448
+ this . _keyManager . updateActiveItem ( optionIndex - 1 ) ;
450
449
} else if ( optionIndex === 0 && this . options . length > 1 ) {
451
- this . _keyManager . updateActiveItemIndex ( Math . min ( optionIndex + 1 , this . options . length - 1 ) ) ;
450
+ this . _keyManager . updateActiveItem ( Math . min ( optionIndex + 1 , this . options . length - 1 ) ) ;
452
451
}
453
452
}
454
453
You can’t perform that action at this time.
0 commit comments