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

An md-subheader with ng-if throws an exception #2650

@ddimitrop

Description

@ddimitrop

http://codepen.io/anon/pen/aOOyMx

Code:

<md-list>
      <md-subheader ng-if="true" >
        test
      </md-subheader>
</md-list>

throws:

TypeError: e[0].querySelector is not a function
    at d (https://material.angularjs.org/docs.js:3:16194)
    at https://material.angularjs.org/docs.js:3:16352
    at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js:51:108
    at MdSubheaderDirective.compile (https://material.angularjs.org/docs.js:3:16300)
    at Z (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js:70:356)
    at J (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js:59:484)
    at g (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js:52:9)
    at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js:51:118
    at $get.l (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js:52:497)
    at k (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js:57:62) <h2 class="md-subheader ng-scope md-default-theme" ng-if="true">

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions