Skip to content

Commit 68713b5

Browse files
fix autofocus (#66)
1 parent 24963c8 commit 68713b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/selection-range.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import iterator from "dom-iterator";
22

33
function position(el, pos) {
4+
if (document.activeElement !== el) return;
45
var selection = window.getSelection();
56

67
if (1 == arguments.length) {

0 commit comments

Comments
 (0)