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 @@