This repository was archived by the owner on Sep 5, 2024. It is now read-only.
tabs: an error message is shown when no tabs are selected #10042
Labels
has: Pull Request
A PR has been created to address this issue
P4: minor
Minor issues. May not be fixed without community contributions.
resolution: fixed
type: bug
Milestone
Actual Behavior:
What is the issue? *
An error message appears in the console in case no tab is selected, and you click on the md-tabs, but not on an actual tab.
What is the expected behavior?
No error message should appear.
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:
http://codepen.io/anon/pen/JbWJNwDetails:
To reproduce click the md-tabs header before selecting any tab.Angular Versions: *
Angular Version:
1.5.8Angular Material Version:
1.1.1Additional Information:
Browser Type: *
Chrome
Browser Version: *
54
OS: *
Windows 10 x64
Stack Traces:
TypeError: Cannot read property 'focus' of undefined
at MdTabsController.redirectFocus (angular-material.js:32432)
at fn (eval at compile (angular.js:14432), :4:295)
at expensiveCheckFn (angular.js:15485)
at callback (angular.js:25018)
at Scope.$eval (angular.js:17229)
at Scope.$apply (angular.js:17329)
at HTMLElement. (angular.js:25023)
at defaultHandlerWrapper (angular.js:3456)
at HTMLElement.eventHandler (angular.js:3444)
The text was updated successfully, but these errors were encountered: