Merge pull request #867 from ffissore/master
Fixed loss of focus when clicking the Copy button
This commit is contained in:
commit
99dc62f9c3
|
@ -543,7 +543,7 @@ function playpen_text(playpen) {
|
||||||
elem.className = 'fa fa-copy tooltipped';
|
elem.className = 'fa fa-copy tooltipped';
|
||||||
}
|
}
|
||||||
|
|
||||||
var clipboardSnippets = new Clipboard('.clip-button', {
|
var clipboardSnippets = new ClipboardJS('.clip-button', {
|
||||||
text: function (trigger) {
|
text: function (trigger) {
|
||||||
hideTooltip(trigger);
|
hideTooltip(trigger);
|
||||||
let playpen = trigger.closest("pre");
|
let playpen = trigger.closest("pre");
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue