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

Commit 5165489

Browse files
alphatwitandrewseguin
authored andcommitted
Include download attribute in list item (#10869)
Clickable list items containing the ng-href attribute currently can't be downloaded on click.
1 parent 515959d commit 5165489

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
@@ -406,7 +406,7 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {
406406
function copyAttributes(source, destination, extraAttrs) {
407407
var copiedAttrs = $mdUtil.prefixer([
408408
'ng-if', 'ng-click', 'ng-dblclick', 'aria-label', 'ng-disabled', 'ui-sref',
409-
'href', 'ng-href', 'rel', 'target', 'ng-attr-ui-sref', 'ui-sref-opts'
409+
'href', 'ng-href', 'rel', 'target', 'ng-attr-ui-sref', 'ui-sref-opts', 'download'
410410
]);
411411

412412
if (extraAttrs) {

0 commit comments

Comments
 (0)