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

Commit ef05ea3

Browse files
committed
fix(list): don't turn list-items with ngIf into a button.
1 parent f73ef23 commit ef05ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/list/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {
9595

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

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

0 commit comments

Comments
 (0)