When the Copy button is pressed, focus is lost and scrolling the page

with the arrow keys stops working. Fixed by upgrading ClipboardJS to
the latest version
This commit is contained in:
Federico Fissore 2019-01-17 16:53:55 +01:00
parent 8b2e1c2daa
commit 02fa7b0a11
2 changed files with 4 additions and 4 deletions

View File

@ -543,7 +543,7 @@ function playpen_text(playpen) {
elem.className = 'fa fa-copy tooltipped';
}
var clipboardSnippets = new Clipboard('.clip-button', {
var clipboardSnippets = new ClipboardJS('.clip-button', {
text: function (trigger) {
hideTooltip(trigger);
let playpen = trigger.closest("pre");

File diff suppressed because one or more lines are too long