Commit Graph

246 Commits

Author SHA1 Message Date
a55c9ac513 Move focus to trigger instead of simply blur()ing (#419)
blur() results in a loss/reset of keyboard focus, meaning keyboard users usually get thrown right back to the start of the page. Instead, this moves focus back to the trigger (which had the focus when the trigger was activated).
As with the proposed fix in https://github.com/zenorocha/clipboard.js/pull/418 this obviously results in the focus styles (like the default outline, unless suppressed) being applied to the trigger (see the related PR for rationale and future fix using `:focus-ring`)
2017-05-29 16:54:55 -07:00
39e622456c Release v1.7.0 v1.7.0 2017-05-29 14:43:41 -07:00
f8c322f163 Reviews text from #368 2017-05-29 14:20:36 -07:00
f42b57067d Container option (#368)
* Allow container option to fix bugs related to bootstrap modals etc.

* Updated readme to reflect addition of container option

* Name link

* Removed test log

* Remove unwanted whitespace

* Refactored description
2017-05-29 14:17:26 -07:00
4065080a17 Removes bower notes from docs 2017-05-22 13:31:36 -07:00
5ab50475e0 ES6 refactor (#409)
* little fix

* little fix /2

* test/clipboard.js refactored

* emitter: emitter --> emitter

* Examples in ES6

* es6

* back to original code

* script > npm test

* script > npm test not necessary

* updating modules

* removing export default
2017-05-02 21:34:18 -07:00
e1394b3b8c Adds bonus section 2017-05-01 09:17:35 -07:00
f59d4e6b4d Release v1.6.1 v1.6.1 2017-02-28 09:58:40 -08:00
9ddff7e591 Prevents Node env from throwing an error 2017-02-28 09:57:36 -08:00
a00f1fe327 Release v1.6.0 v1.6.0 2017-02-08 00:02:14 -08:00
38ae5b34f3 Adds documentation about #355 2017-02-07 23:59:27 -08:00
41b7234d50 Prevents keyboard from opening on iOS when using "data-clipboard-target" 2017-02-07 23:41:46 -08:00
3696739e5e Prevents scroll jump on iOS when using "data-clipboard-text"
Thanks to @geraldarthur at #369
2017-02-07 23:37:43 -08:00
63d1b0f014 Add isSupported method #355 2017-02-07 23:36:29 -08:00
402c9ee17b Release v1.5.16 v1.5.16 2016-12-12 11:54:35 -02:00
0538f6e212 Ensures that event delegation works with multiple documents (a page with iframes) 2016-12-12 11:53:41 -02:00
8ad16a2c6c Release v1.5.15 v1.5.15 2016-10-22 19:44:43 -07:00
ce0829054b Updates dev dependencies 2016-10-22 19:37:37 -07:00
223d30c110 Removes babel loose mode 2016-10-22 19:37:18 -07:00
b1a68df6e9 Release v1.5.14 2016-10-22 19:36:49 -07:00
0149e1de5e Updates good-listener package which removes two dependencies v1.5.14 2016-10-22 19:10:44 -07:00
26a9e9d56c Release v1.5.13 v1.5.13 2016-10-16 22:44:03 -07:00
fce625f151 Fixes #320 2016-10-16 18:53:34 -07:00
f7040bae8a Adds meta viewport for all demos 2016-10-16 17:16:02 -07:00
9f9d03c927 Adds Edge version #316 2016-09-26 13:57:28 -05:00
e18c26ae07 Add Edge to the Browser Support section (#316)
Ref: https://github.com/zenorocha/clipboard.js/pull/267#issuecomment-249620994
2016-09-26 13:48:16 -05:00
70cfabec69 Update readme.md 2016-09-21 13:21:25 -07:00
f700a1b12e Moves URLs to HTTPS 2016-09-21 11:42:37 -07:00
9e3d662c4e Adjusts text based on #313 2016-09-21 11:04:07 -07:00
76b907949c issue #282 solution (#283)
* add selectedText

* better code

* remove dist folder

* Revert "remove dist folder"

This reverts commit 50e726c7a7.

* orogin dist source
2016-09-08 08:57:41 -07:00
60b6887100 Updates site preview 2016-06-17 14:49:39 -07:00
eb7418b51b Release v1.5.12 v1.5.12 2016-06-09 07:57:20 -07:00
869c4e3219 Fix bug that unable to remove fake event listener (#256)
* Fix bug that unable to remove fake event listener

* Update dist
2016-06-09 07:54:07 -07:00
a4ab305297 Release v1.5.11 v1.5.11 2016-06-08 21:46:20 -07:00
294e9fcb5d Fix fake element position from "fixed" to "absolute" #194 #250 2016-06-08 21:44:54 -07:00
79c3361ca4 Press Ctrl+C to copy -> Press Command+C to copy (#252)
As Safari users are mostly using mac, coping a text needs Command+C instead of Ctrl+C
2016-06-02 15:28:16 -07:00
c3fefc1fc0 Fix memory leak because of fakeHandlers (#243)
addEventListener always returns undefined by spec
https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget-addEventListener
2016-05-26 11:35:18 -07:00
42bd266f0b Adds basic JSFiddle to help people reproduce their bugs 2016-05-01 16:14:51 -07:00
53a733fcb5 Release v1.5.10 v1.5.10 2016-04-03 22:33:02 -07:00
7a5a910bcd Removes error message when target/text attributes are null, undefined, or false 2016-04-03 22:16:22 -07:00
0163f7cb72 Merge pull request #216 from sebastianekstrom/master
Use const instead of let when applicable
2016-04-01 08:48:49 -07:00
941bdbb16e Use const instead of let when applicable 2016-04-01 13:17:12 +02:00
00d5cc4e96 Updates tagline #210 2016-03-17 09:12:23 -07:00
07a1f8456b Throws error when disabled or readonly attributes are used on target element
Fixes #41
2016-03-01 15:38:25 -08:00
ff3cd2c722 Release v1.5.9 v1.5.9 2016-02-26 10:26:32 -08:00
d346f30e5d Merge pull request #190 from heldr/master
update modules and fix #176
2016-02-25 12:19:22 -08:00
e5fe34c524 WTF?! npm 2016-02-25 15:17:07 -05:00
0a6aace544 Merge pull request #194 from stepancar/patch-1
minor fix for fake elem
2016-02-25 12:06:38 -08:00
43d9c11aaf minor fix for fake elem
after call clipboard all page scrolls down. As i understand, its relates to fake element, cause its append to body.
I just set position to 'fixed' and now it works right. I think 'fixed' is more css-style independence then 'absolute'
2016-02-25 15:20:13 +03:00
90a52149ed fix babel 6 export default behaviour 2016-02-20 01:41:40 -05:00