diff --git a/src/core_plugins/kibana/public/home/copy_to_clipboard.js b/src/core_plugins/kibana/public/home/copy_to_clipboard.js index 824363307e32f..81c42adc18be5 100644 --- a/src/core_plugins/kibana/public/home/copy_to_clipboard.js +++ b/src/core_plugins/kibana/public/home/copy_to_clipboard.js @@ -26,6 +26,7 @@ export function copyToClipboard(text) { try { document.body.appendChild(elementToBeCopied); range.selectNode(elementToBeCopied); + selection.empty(); selection.addRange(range); if (!document.execCommand('copy')) {