Merge pull request #867 from ffissore/master

Fixed loss of focus when clicking the Copy button
This commit is contained in:
Dylan DPC 2019-04-23 20:25:58 +02:00 committed by GitHub
commit 99dc62f9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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