We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24963c8 commit 68713b5Copy full SHA for 68713b5
src/utils/selection-range.js
@@ -1,6 +1,7 @@
1
import iterator from "dom-iterator";
2
3
function position(el, pos) {
4
+ if (document.activeElement !== el) return;
5
var selection = window.getSelection();
6
7
if (1 == arguments.length) {
0 commit comments