From ae9367384b094a656b4a87a42ebe781ebb69f5b2 Mon Sep 17 00:00:00 2001 From: Matthew Huntington Date: Wed, 7 Aug 2024 18:50:58 +0200 Subject: [PATCH] innerText for clipboard copy --- src/components/show_category.vue | 2 +- src/components/songs.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/show_category.vue b/src/components/show_category.vue index 6dd51dd..d4643c3 100644 --- a/src/components/show_category.vue +++ b/src/components/show_category.vue @@ -14,7 +14,7 @@ }) }, copy(event){ - navigator.clipboard.writeText(event.target.innerHTML); + navigator.clipboard.writeText(event.target.innerText); } }, mounted() { diff --git a/src/components/songs.vue b/src/components/songs.vue index 7a38803..eda8f32 100644 --- a/src/components/songs.vue +++ b/src/components/songs.vue @@ -14,7 +14,7 @@ }, methods: { copy(event){ - navigator.clipboard.writeText(event.target.innerHTML); + navigator.clipboard.writeText(event.target.innerText); } }, }