Skip to content

Commit

Permalink
fix: removed id check
Browse files Browse the repository at this point in the history
  • Loading branch information
afrzhussain committed Jan 17, 2025
1 parent 4073f5b commit 0ecb287
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/components/codeblock.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Searching and filtering can happen by exact matches (the default) and by matchin

<ClientOnly>
<KCodeBlock
id="code-block-default"
id=""
:code="code"
language="json"
searchable
Expand Down
2 changes: 1 addition & 1 deletion src/components/KCodeBlock/KCodeBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
:aria-label="`Copy (${ALT_SHORTCUT_LABEL}+C)`"
class="code-block-copy-button"
:copy-tooltip="`Copy (${ALT_SHORTCUT_LABEL}+C)`"
:data-testid="`code-block-copy-button${id ? '-' + id : '' }`"
:data-testid="`code-block-copy-button-${id}`"
:theme="theme"
@click="copyCode"
>
Expand Down

0 comments on commit 0ecb287

Please sign in to comment.