Removes fake element from screen instead making it transparent

This commit is contained in:
Zeno Rocha
2015-09-22 09:59:15 -07:00
parent b4a748f89f
commit fbb2a316bf
2 changed files with 3 additions and 3 deletions

View File

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