mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
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:
parent
98c96a1136
commit
8d690838d9
@ -86,7 +86,6 @@ class Clipboard extends Emitter {
|
|||||||
if (trigger) {
|
if (trigger) {
|
||||||
trigger.focus();
|
trigger.focus();
|
||||||
}
|
}
|
||||||
document.activeElement.blur();
|
|
||||||
window.getSelection().removeAllRanges();
|
window.getSelection().removeAllRanges();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user