File tree 1 file changed +2
-5
lines changed 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -171,17 +171,14 @@ export class MdSelectionList extends _MdSelectionListMixinBase
171
171
// Watch for focus events outside of the keyboard navigation
172
172
option . onFocus . subscribe ( ( ) => {
173
173
let optionIndex : number = this . options . toArray ( ) . indexOf ( option ) ;
174
-
175
- if ( this . _isValidIndex ( optionIndex ) ) {
176
- this . _keyManager . updateActiveItemIndex ( optionIndex ) ;
177
- }
174
+ this . _keyManager . updateActiveItemIndex ( optionIndex ) ;
178
175
} ) ;
179
176
180
177
// On destroy, remove the item from our list, and check focus
181
178
option . destroy . subscribe ( ( ) => {
182
179
let optionIndex : number = this . options . toArray ( ) . indexOf ( option ) ;
183
180
184
- if ( this . _isValidIndex ( optionIndex ) && option . _hasFocus ) {
181
+ if ( option . _hasFocus ) {
185
182
// Check whether the option is the last item
186
183
if ( optionIndex < this . options . length - 1 ) {
187
184
this . _keyManager . setActiveItem ( optionIndex ) ;
You can’t perform that action at this time.
0 commit comments