mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Removes fake element from screen instead making it transparent
This commit is contained in:
@ -58,8 +58,8 @@ class ClipboardAction {
|
||||
selectValue() {
|
||||
let fake = document.createElement('input');
|
||||
|
||||
fake.style.opacity = 0;
|
||||
fake.style.zIndex = -1;
|
||||
fake.style.position = 'absolute';
|
||||
fake.style.left = '-9999px';
|
||||
fake.value = this.text;
|
||||
this.selectedText = this.text;
|
||||
|
||||
|
Reference in New Issue
Block a user