Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2022-11-08 13:07:41 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2022-11-08 13:07:41 +0300
commit0bd3b4b66b5f08f2051071e030423cdd77b15c76 (patch)
treee9398e6eb7c5bfa10d6408b8a4b4c0a7a4e5c448
parentbbbf7bd773cd88080c5dc7cab0327cbe2aba8534 (diff)
Fix copy to clipboard
To make clipboard.js work with modals, the fakeElement (to copy the data from) must be part of the modals DOM structure. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r--src/components/RecipientBubble.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/RecipientBubble.vue b/src/components/RecipientBubble.vue
index bca05f1d7..be7223876 100644
--- a/src/components/RecipientBubble.vue
+++ b/src/components/RecipientBubble.vue
@@ -20,7 +20,7 @@
-->
<template>
- <Popover trigger="click" class="contact-popover">
+ <Popover ref="popover" trigger="click" class="contact-popover">
<UserBubble slot="trigger"
:display-name="label"
:avatar-image="avatarUrlAbsolute"
@@ -204,7 +204,7 @@ export default {
},
methods: {
onClickCopyToClipboard() {
- this.$copyText(this.email)
+ this.$copyText(this.email, this.$refs.popover.$refs.popover.$refs.popperContent.$el)
},
onClickReply() {
this.$router.push({