Skip to content

Commit

Permalink
bugfix: codeblock copy btn type (#2428)
Browse files Browse the repository at this point in the history
Co-authored-by: Mahmoud-zino <[email protected]>
  • Loading branch information
Mahmoud-zino and Mahmoud-zino authored Jan 16, 2024
1 parent 158d973 commit bc79044
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nasty-terms-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@skeletonlabs/skeleton": patch
---

bugfix: set CodeBlock copy button type to `button` instead of `submit`
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<!-- Language -->
<span class="codeblock-language">{languageFormatter(language)}</span>
<!-- Copy Button -->
<button class="codeblock-btn {button}" on:click={onCopyClick} use:clipboard={code}>
<button type="button" class="codeblock-btn {button}" on:click={onCopyClick} use:clipboard={code}>
{!copyState ? buttonLabel : buttonCopied}
</button>
</header>
Expand Down

0 comments on commit bc79044

Please sign in to comment.