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

Commit 19a32d0

Browse files
EladBezalelThomasBurleson
authored andcommitted
fix(list): secondary button wasn't coping ngIf attribute
fixes #5297 Closes #5991
1 parent 605a173 commit 19a32d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/list/list.js

Lines changed: 2 additions & 2 deletions
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.ngClick || tAttrs.ngHref || tAttrs.href || tAttrs.uiSref || tAttrs.ngAttrUiSref) {
98+
if (tAttrs.ngIf || 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) {
@@ -165,7 +165,7 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {
165165
}
166166

167167
function copyAttributes(item, wrapper) {
168-
var copiedAttrs = ['ng-click', 'aria-label', 'ng-disabled',
168+
var copiedAttrs = ['ng-if', 'ng-click', 'aria-label', 'ng-disabled',
169169
'ui-sref', 'href', 'ng-href', 'ng-attr-ui-sref'];
170170
angular.forEach(copiedAttrs, function(attr) {
171171
if (item.hasAttribute(attr)) {

0 commit comments

Comments
 (0)