-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Description
I've played around with this a while now and noticed that this composition works:
<template>
<div>
<v-btn v-clipboard="inviteUrl">Copy</v-btn> <!-- works -->
</div
</template>
data: () => ({
inviteUrl: "www.fakeurl.com",
}),However, when I implement a Vuetify dialog in my template, it no longer works, as in the text www.fakeurl.com does not get copied upon button press. No errors in console either.
<template>
<v-dialog v-model="linkDialog">
<template v-slot:activator="{ on, attrs }">
<v-btn v-bind="attrs" v-on="on">
Get link
</v-btn>
</template>
<v-card>
Here's your link: {{ inviteUrl }}
<v-btn v-clipboard="inviteUrl">Copy</v-btn> <!-- doesn't work -->
</v-card>
</v-dialog>
</template>Any advice on why the copy function won't work when nested in elements inside Vuetify framework elements?
Thanks!
henkelmax, AnastasiaArt, CrazyCrud, isparkes, BenShelton and 4 more
Metadata
Metadata
Assignees
Labels
No labels