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

Commit

Permalink
fix(list): don't turn list-items with ngIf into a button.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelbourn committed Dec 7, 2015
1 parent f73ef23 commit ef05ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/list/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {

tEl[0].setAttribute('role', 'listitem');

if (tAttrs.ngIf || tAttrs.ngClick || tAttrs.ngHref || tAttrs.href || tAttrs.uiSref || tAttrs.ngAttrUiSref) {
if (tAttrs.ngClick || tAttrs.ngHref || tAttrs.href || tAttrs.uiSref || tAttrs.ngAttrUiSref) {
wrapIn('button');
} else {
for (var i = 0, type; type = proxiedTypes[i]; ++i) {
Expand Down

0 comments on commit ef05ea3

Please sign in to comment.