Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

TypeError: Cannot read property 'focus' of undefined in MdTabsController.redirectFocus #6776

Closed
craigsh opened this issue Jan 20, 2016 · 3 comments

Comments

@craigsh
Copy link

craigsh commented Jan 20, 2016

I'm having some focus issues with my application, but when it does go wrong, I get this:

TypeError: Cannot read property 'focus' of undefined
at MdTabsController.redirectFocus (http://localhost:3000/jspm_packages/github/angular/bower-material@1.0.2/angular-material.js:23818:45)
at fn (eval at (unknown source), :4:295)
at callback (http://localhost:3000/jspm_packages/github/angular/bower-angular@1.5.0-rc.0/angular.js:24278:17)
at Scope.$eval (http://localhost:3000/jspm_packages/github/angular/bower-angular@1.5.0-rc.0/angular.js:16554:28)
at Scope.$apply (http://localhost:3000/jspm_packages/github/angular/bower-angular@1.5.0-rc.0/angular.js:16654:25)
at HTMLElement. (http://localhost:3000/jspm_packages/github/angular/bower-angular@1.5.0-rc.0/angular.js:24283:23)
at defaultHandlerWrapper (http://localhost:3000/jspm_packages/github/angular/bower-angular@1.5.0-rc.0/angular.js:3471:11)
at HTMLElement.eventHandler (http://localhost:3000/jspm_packages/github/angular/bower-angular@1.5.0-rc.0/angular.js:3459:9)

@ThomasBurleson
Copy link
Contributor

Please provide a CodePen or Plunkr that demonstrates this issue. Here are some starter demo templates that you can use/fork:

I will reopen update submission of valid CodePen illustrating the issue.

@CxRes
Copy link

CxRes commented Apr 15, 2016

I have also had the exact same error when I upgraded angular to 1.5.4. It does not happen in angular 1.5.3. Unfortunately I cannot replicate it on the Codepen and do not understand why it occurs...

@ThomasBurleson
Copy link
Contributor

This is a known issue with the Angular 1.5.4 release and the $compile change in that release is being rolled back.

@angular angular locked and limited conversation to collaborators Apr 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants