changed "fakeElem" element type.

This commit is contained in:
Maxim Lebedinets 2015-09-30 20:22:45 +03:00
parent 1b062f72f5
commit c041e2a8f0

2
dist/clipboard.js vendored
View File

@ -278,7 +278,7 @@ var ClipboardAction = (function () {
return _this.removeFake();
});
this.fakeElem = document.createElement('input');
this.fakeElem = document.createElement('textarea');
this.fakeElem.style.position = 'absolute';
this.fakeElem.style.left = '-9999px';
this.fakeElem.setAttribute('readonly', '');