Skip to content

Commit

Permalink
fix(button): download despite download prop set to 'false' (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPaj authored Oct 27, 2021
1 parent 543cc61 commit 6a7c368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class Button {
<a
class={this.getCssClassMap()}
href={this.href}
download={this.download}
{...(this.download ? { download: true } : {})}
target={this.target}
rel={this.target === '_blank' ? 'noopener noreferrer' : undefined}
aria-label={this.ariaLabel}
Expand Down

0 comments on commit 6a7c368

Please sign in to comment.