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

Commit 1227b0a

Browse files
code-treeThomasBurleson
authored andcommitted
fix(list): add target to copiedAttrs
Closes #7831
1 parent b3cb84d commit 1227b0a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/list/list.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {
199199

200200
function copyAttributes(item, wrapper) {
201201
var copiedAttrs = ['ng-if', 'ng-click', 'aria-label', 'ng-disabled',
202-
'ui-sref', 'href', 'ng-href', 'ng-attr-ui-sref', 'ui-sref-opts'];
202+
'ui-sref', 'href', 'ng-href', 'target', 'ng-attr-ui-sref', 'ui-sref-opts'];
203203

204204
angular.forEach(copiedAttrs, function(attr) {
205205
if (item.hasAttribute(attr)) {
@@ -344,4 +344,3 @@ function MdListController($scope, $element, $mdListInkRipple) {
344344
$mdListInkRipple.attach(scope, element, options);
345345
}
346346
}
347-

0 commit comments

Comments
 (0)