Skip to content

Commit

Permalink
Update src/clipboard-copy-element.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
  • Loading branch information
camertron and keithamus authored Sep 28, 2023
1 parent 58e5d5f commit 3412dc6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/clipboard-copy-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ async function copy(button: HTMLElement) {
}

if (button.getAttribute('aria-disabled') === 'true') {
button.dispatchEvent(new CustomEvent('clipboard-copy-nothing', {bubbles: true}))
return
}

Expand Down

0 comments on commit 3412dc6

Please sign in to comment.