diff --git a/changes/changelog.d/copybutton.bugfix b/changes/changelog.d/copybutton.bugfix new file mode 100644 index 000000000..091b15f5a --- /dev/null +++ b/changes/changelog.d/copybutton.bugfix @@ -0,0 +1 @@ +Fixed an issue where the copy button didn't copy the Embed code in the embed modal. diff --git a/front/src/components/audio/EmbedWizard.vue b/front/src/components/audio/EmbedWizard.vue index 05ddd2441..266ba4c7d 100644 --- a/front/src/components/audio/EmbedWizard.vue +++ b/front/src/components/audio/EmbedWizard.vue @@ -39,8 +39,7 @@ const iframeSrc = computed(() => { const frameWidth = computed(() => width.value ?? '100%') const embedCode = computed(() => ``) -const textarea = ref() -const { copy, copied } = useClipboard({ source: textarea }) +const { copy, copied } = useClipboard({ source: embedCode })