Skip to content

Commit

Permalink
fix(module:typography): add type="button" attribute to button element…
Browse files Browse the repository at this point in the history
… in nz-text-copy component (#6606)

add button attribute to prevent form submission on some browsers when copying to clipboard

closes #6605

Co-authored-by: Sam Goldmann <samuel.goldmann@ancorasoftware.com>
  • Loading branch information
goldsam and Sam Goldmann committed Apr 15, 2021
1 parent 62e4bb6 commit 48a9714
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/typography/text-copy.component.ts
Expand Up @@ -29,6 +29,7 @@ import { takeUntil } from 'rxjs/operators';
exportAs: 'nzTextCopy',
template: `
<button
type="button"
nz-tooltip
nz-trans-button
[nzTooltipTitle]="copied ? copedTooltip : copyTooltip"
Expand Down

0 comments on commit 48a9714

Please sign in to comment.