File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ export class MdChipList implements AfterContentInit, OnDestroy {
113
113
this . _subscribeChips ( this . chips ) ;
114
114
115
115
// Make sure we set our tab index at the start
116
- this . _checkTabIndex ( ) ;
116
+ this . _updateTabIndex ( ) ;
117
117
118
118
// When the list changes, re-subscribe
119
119
this . chips . changes . subscribe ( ( chips : QueryList < MdChip > ) => {
@@ -125,7 +125,7 @@ export class MdChipList implements AfterContentInit, OnDestroy {
125
125
}
126
126
127
127
// Check to see if we need to update our tab index
128
- this . _checkTabIndex ( ) ;
128
+ this . _updateTabIndex ( ) ;
129
129
130
130
// Check to see if we have a destroyed chip and need to refocus
131
131
this . _updateFocusForDestroyedChips ( ) ;
@@ -227,7 +227,7 @@ export class MdChipList implements AfterContentInit, OnDestroy {
227
227
/**
228
228
* Check the tab index as you should not be allowed to focus an empty list.
229
229
*/
230
- protected _checkTabIndex ( ) : void {
230
+ protected _updateTabIndex ( ) : void {
231
231
// If we have 0 chips, we should not allow keyboard focus
232
232
this . _tabIndex = ( this . chips . length == 0 ? - 1 : 0 ) ;
233
233
}
You can’t perform that action at this time.
0 commit comments