mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
changed "fakeElem" element type.
This commit is contained in:
2
dist/clipboard.js
vendored
2
dist/clipboard.js
vendored
@@ -278,7 +278,7 @@ var ClipboardAction = (function () {
|
|||||||
return _this.removeFake();
|
return _this.removeFake();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.fakeElem = document.createElement('input');
|
this.fakeElem = document.createElement('textarea');
|
||||||
this.fakeElem.style.position = 'absolute';
|
this.fakeElem.style.position = 'absolute';
|
||||||
this.fakeElem.style.left = '-9999px';
|
this.fakeElem.style.left = '-9999px';
|
||||||
this.fakeElem.setAttribute('readonly', '');
|
this.fakeElem.setAttribute('readonly', '');
|
||||||
|
|||||||
Reference in New Issue
Block a user