Skip to content

Commit a4ab305

Browse files
committed
Release v1.5.11
1 parent 294e9fc commit a4ab305

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "clipboard",
3-
"version": "1.5.10",
3+
"version": "1.5.11",
44
"description": "Modern copy to clipboard. No Flash. Just 2kb",
55
"license": "MIT",
66
"main": "dist/clipboard.js",

dist/clipboard.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ module.exports = E;
450450

451451
this.fakeHandler = document.body.addEventListener('click', function () {
452452
return _this.removeFake();
453-
});
453+
}) || true;
454454

455455
this.fakeElem = document.createElement('textarea');
456456
// Prevent zooming on iOS
@@ -460,7 +460,7 @@ module.exports = E;
460460
this.fakeElem.style.padding = '0';
461461
this.fakeElem.style.margin = '0';
462462
// Move element out of screen horizontally
463-
this.fakeElem.style.position = 'fixed';
463+
this.fakeElem.style.position = 'absolute';
464464
this.fakeElem.style[isRTL ? 'right' : 'left'] = '-9999px';
465465
// Move element to the same position vertically
466466
this.fakeElem.style.top = (window.pageYOffset || document.documentElement.scrollTop) + 'px';

0 commit comments

Comments
 (0)