Fixed share modal copy button issue..
This commit is contained in:
parent
9f172b9c0b
commit
8311d7f1da
9
resources/assets/js/mixins/global.js
vendored
9
resources/assets/js/mixins/global.js
vendored
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user