Import Clipboard lib into clipboard_button.vue
At the moment, clipboard is initalized globally for all tags with data-clipboard-text
, this means that if we import and init Clipboard
in clipboard_button.vue
, it will be done twice.
Once we remove global code, we can init the Clipboard
in the component and avoid side effects.
Edited by Filipa Lacerda