Skip to content

Commit

Permalink
fix(share.js): remove copy-to-clipboard child element from share cont…
Browse files Browse the repository at this point in the history
…ainer instead of from body
  • Loading branch information
amoncaldas committed Jan 12, 2022
1 parent 6485f5e commit f540f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fragments/forms/map-form/components/share/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default {
this.$refs.shareContainer.appendChild(tempTextArea)
tempTextArea.select()
const result = document.execCommand('copy')
document.body.removeChild(tempTextArea)
this.$refs.shareContainer.removeChild(tempTextArea)
return result
},

Expand Down

0 comments on commit f540f24

Please sign in to comment.