Skip to content

Commit 1ff96d3

Browse files
committed
update tab index
1 parent 2281357 commit 1ff96d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/chips/chip-list.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class MdChipList implements AfterContentInit, OnDestroy {
113113
this._subscribeChips(this.chips);
114114

115115
// Make sure we set our tab index at the start
116-
this._checkTabIndex();
116+
this._updateTabIndex();
117117

118118
// When the list changes, re-subscribe
119119
this.chips.changes.subscribe((chips: QueryList<MdChip>) => {
@@ -125,7 +125,7 @@ export class MdChipList implements AfterContentInit, OnDestroy {
125125
}
126126

127127
// Check to see if we need to update our tab index
128-
this._checkTabIndex();
128+
this._updateTabIndex();
129129

130130
// Check to see if we have a destroyed chip and need to refocus
131131
this._updateFocusForDestroyedChips();
@@ -227,7 +227,7 @@ export class MdChipList implements AfterContentInit, OnDestroy {
227227
/**
228228
* Check the tab index as you should not be allowed to focus an empty list.
229229
*/
230-
protected _checkTabIndex(): void {
230+
protected _updateTabIndex(): void {
231231
// If we have 0 chips, we should not allow keyboard focus
232232
this._tabIndex = (this.chips.length == 0 ? -1 : 0);
233233
}

0 commit comments

Comments
 (0)