diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 82cf307e91..0de6ca96f6 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -92,10 +92,9 @@ $(document).ready(function(){ // Copy code blocks in docs $(".copy-code").focus(function() { - $(this).select(); - }); - $(".copy-code").mouseup(function(e) { - e.preventDefault(); + var el = this; + // push select to event loop for chrome :{o + setTimeout(function () { $(el).select(); }, 1); });