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

Commit

Permalink
fix(list): add target to copiedAttrs
Browse files Browse the repository at this point in the history
Closes #7831
  • Loading branch information
code-tree authored and ThomasBurleson committed Apr 11, 2016
1 parent b3cb84d commit 1227b0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/list/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {

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

angular.forEach(copiedAttrs, function(attr) {
if (item.hasAttribute(attr)) {
Expand Down Expand Up @@ -344,4 +344,3 @@ function MdListController($scope, $element, $mdListInkRipple) {
$mdListInkRipple.attach(scope, element, options);
}
}

0 comments on commit 1227b0a

Please sign in to comment.