From 8311d7f1da027fc21445c88fc466f355d4f245ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 31 Aug 2022 15:28:40 +0300 Subject: [PATCH] Fixed share modal copy button issue.. --- resources/assets/js/mixins/global.js | 9 +++++---- resources/views/modals/invoices/share.blade.php | 3 +-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/assets/js/mixins/global.js b/resources/assets/js/mixins/global.js index bda5c40f9..1ee9f731a 100644 --- a/resources/assets/js/mixins/global.js +++ b/resources/assets/js/mixins/global.js @@ -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, diff --git a/resources/views/modals/invoices/share.blade.php b/resources/views/modals/invoices/share.blade.php index 2e0d4ceb4..ab1a34f06 100644 --- a/resources/views/modals/invoices/share.blade.php +++ b/resources/views/modals/invoices/share.blade.php @@ -5,14 +5,13 @@
- -