From 19a32d0bf3f6577c3169b6e8732edbba1c180f70 Mon Sep 17 00:00:00 2001 From: Elad Bezalel Date: Mon, 30 Nov 2015 20:07:49 +0200 Subject: [PATCH] fix(list): secondary button wasn't coping ngIf attribute fixes #5297 Closes #5991 --- src/components/list/list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/list/list.js b/src/components/list/list.js index 1024ec676be..9d95718acba 100644 --- a/src/components/list/list.js +++ b/src/components/list/list.js @@ -95,7 +95,7 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) { tEl[0].setAttribute('role', 'listitem'); - if (tAttrs.ngClick || tAttrs.ngHref || tAttrs.href || tAttrs.uiSref || tAttrs.ngAttrUiSref) { + if (tAttrs.ngIf || tAttrs.ngClick || tAttrs.ngHref || tAttrs.href || tAttrs.uiSref || tAttrs.ngAttrUiSref) { wrapIn('button'); } else { for (var i = 0, type; type = proxiedTypes[i]; ++i) { @@ -165,7 +165,7 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) { } function copyAttributes(item, wrapper) { - var copiedAttrs = ['ng-click', 'aria-label', 'ng-disabled', + var copiedAttrs = ['ng-if', 'ng-click', 'aria-label', 'ng-disabled', 'ui-sref', 'href', 'ng-href', 'ng-attr-ui-sref']; angular.forEach(copiedAttrs, function(attr) { if (item.hasAttribute(attr)) {