We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 231467d commit 3c3bf0dCopy full SHA for 3c3bf0d
src/components/tabs/tabs.ts
@@ -64,7 +64,7 @@ export class MdTabGroup {
64
* ViewChildren references are ready.
65
*/
66
private get _currentLabelWrapper(): HTMLElement {
67
- return this._labelWrappers && this._labelWrappers.toArray()[this.selectedIndex]
+ return this._labelWrappers && this._labelWrappers.length
68
? this._labelWrappers.toArray()[this.selectedIndex].elementRef.nativeElement
69
: null;
70
}
0 commit comments