An empty md-list-item throws an exception
Code like that throws an exception in 0.9
<md-list>
<md-list-item>
</md-list-item>
</md-list>
http://codepen.io/anon/pen/jPPLJZ
TypeError: Cannot read property 'addEventListener' of null
at s (https://material.angularjs.org/docs.js:1:19958)
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 J (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js:59:428)
at g (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js:52:9)
at J (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js:59:428)
at g (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js:52:9)
at g (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js:52:26)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js:51:118
https://github.com/angular/material/blob/master/src/components/list/list.js#L207
Just had the same issue while trying to add ng-switch on the md-list item. I guess it's the same root cause.
It seems to happen when there's no ng-click on the <md-list-item>.
+1 Lists should be possible without ng-click
+1
+1
+1