Commit 1980403c authored by Phil Hughes's avatar Phil Hughes

Fixed caret not moving correctly

parent 80c0b877
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
right += selectionStart; right += selectionStart;
} }
let left = inputValue.slice(0, right).search(/\S+$/); let left = inputValue.slice(0, selectionStart + 1).search(/\S+$/);
if (selectionStart === 0) { if (selectionStart === 0) {
left = 0; left = 0;
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
right = inputValue.length; right = inputValue.length;
} }
input.setSelectionRange(selectionStart + right, selectionStart); input.setSelectionRange(right, right);
} }
updateCurrentDropdownOffset() { updateCurrentDropdownOffset() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment