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 @@ -288,7 +288,6 @@ export class MatListOption extends _MatListOptionMixinBase
288
288
'role' : 'listbox' ,
289
289
'[tabIndex]' : 'tabIndex' ,
290
290
'class' : 'mat-selection-list mat-list-base' ,
291
- '(focus)' : 'focus()' ,
292
291
'(blur)' : '_onTouched()' ,
293
292
'(keydown)' : '_keydown($event)' ,
294
293
'aria-multiselectable' : 'true' ,
@@ -399,7 +398,7 @@ export class MatSelectionList extends _MatSelectionListMixinBase implements Focu
399
398
this . _modelChanges . unsubscribe ( ) ;
400
399
}
401
400
402
- /** Focuses the last active list option . */
401
+ /** Focuses the selection list. */
403
402
focus ( ) {
404
403
this . _element . nativeElement . focus ( ) ;
405
404
}
@@ -429,9 +428,9 @@ export class MatSelectionList extends _MatSelectionListMixinBase implements Focu
429
428
if ( optionIndex > - 1 && this . _keyManager . activeItemIndex === optionIndex ) {
430
429
// Check whether the option is the last item
431
430
if ( optionIndex > 0 ) {
432
- this . _keyManager . updateActiveItemIndex ( optionIndex - 1 ) ;
431
+ this . _keyManager . updateActiveItem ( optionIndex - 1 ) ;
433
432
} else if ( optionIndex === 0 && this . options . length > 1 ) {
434
- this . _keyManager . updateActiveItemIndex ( Math . min ( optionIndex + 1 , this . options . length - 1 ) ) ;
433
+ this . _keyManager . updateActiveItem ( Math . min ( optionIndex + 1 , this . options . length - 1 ) ) ;
435
434
}
436
435
}
437
436
You can’t perform that action at this time.
0 commit comments