Skip to content

Commit

Permalink
Merge pull request rust-lang#867 from ffissore/master
Browse files Browse the repository at this point in the history
Fixed loss of focus when clicking the Copy button
  • Loading branch information
Dylan-DPC authored Apr 23, 2019
2 parents 70e9968 + 691323b commit fa7750a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/theme/book.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Loading

0 comments on commit fa7750a

Please sign in to comment.