Commit 7da78f8b authored by Phil Hughes's avatar Phil Hughes

Fixed caret not moving correctly

parent 9c707348
...@@ -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;
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,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