Remove the blur() following a clipboard action

It's pointless to set `focus()` on the trigger first, if in the next step you're just going to `blur()` the active element anyway.
This commit is contained in:
Patrick H. Lauke 2022-04-22 13:12:56 +01:00
parent 98c96a1136
commit 8d690838d9

View File

@ -86,7 +86,6 @@ class Clipboard extends Emitter {
if (trigger) {
trigger.focus();
}
document.activeElement.blur();
window.getSelection().removeAllRanges();
},
});