mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Fixed for Firefox.
This commit is contained in:
parent
019b021624
commit
f28bcaa7e2
@ -56,7 +56,7 @@ class ClipboardAction {
|
||||
this.fakeElem = document.createElement('textarea');
|
||||
this.fakeElem.style.position = 'absolute';
|
||||
this.fakeElem.style.left = '-9999px';
|
||||
this.fakeElem.style.top = document.body.scrollTop + 'px';
|
||||
this.fakeElem.style.top = ( window.pageYOffset || document.documentElement.scrollTop) + 'px';
|
||||
this.fakeElem.setAttribute('readonly', '');
|
||||
this.fakeElem.value = this.text;
|
||||
this.selectedText = this.text;
|
||||
|
Loading…
Reference in New Issue
Block a user