Fixed share modal copy button issue..

This commit is contained in:
Cüneyt Şentürk 2022-08-31 15:28:40 +03:00
parent 9f172b9c0b
commit 8311d7f1da
2 changed files with 6 additions and 6 deletions

View File

@ -617,11 +617,12 @@ export default {
},
methods: {
onCopyLink(event) {
onCopyLink() {
let type = 'success';
let copyText = document.querySelector('#dynamic-share-component #hidden-share');
copyText.select();
document.execCommand("copy");
let copy_html = document.getElementById('share');
copy_html.select();
document.execCommand('copy');
this.$notify({
message: this.share.success_message,

View File

@ -5,14 +5,13 @@
</div>
<div class="my-3">
<x-form.input.text
<x-form.input.input
name="share"
value="{{ $signedUrl }}"
ref="clone"
@click="onCopyLink()"
class="bg-gray-100 appearance-none border-2 border-gray-100 rounded w-full py-2 px-4 text-gray-700 leading-tight cursor-pointer focus:outline-none focus:ring-transparent focus:border-transparent"
/>
<x-form.input.hidden name="hidden-share" value="{{ $signedUrl }}" />
<div data-copied class="hidden h-10 items-center justify-center">
<span