Skip to content
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

Closed
zsee opened this issue Nov 21, 2016 · 1 comment · Fixed by #11520
Closed

tabs: an error message is shown when no tabs are selected #10042

zsee opened this issue Nov 21, 2016 · 1 comment · Fixed by #11520
Assignees
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

Comments

@zsee
Copy link

zsee commented Nov 21, 2016

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): *

Angular Versions: *

  • Angular Version: 1.5.8
  • Angular Material Version: 1.1.1

Additional 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)
@rsiebeling
Copy link

Hi,

I'm having exactly this problem, is there a solution for this?
thanks,
Richard

@Splaktar Splaktar changed the title mdTabs: An error message is shown when no tabs are selected tabs: an error message is shown when no tabs are selected Nov 21, 2018
@Splaktar Splaktar self-assigned this Nov 21, 2018
@Splaktar Splaktar added this to the 1.1.12 milestone Nov 21, 2018
@Splaktar Splaktar added type: bug P4: minor Minor issues. May not be fixed without community contributions. has: Pull Request A PR has been created to address this issue labels Nov 21, 2018
@Splaktar Splaktar modified the milestones: 1.1.12, 1.1.13 Jan 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants