Skip to content
Snippets Groups Projects
Commit 1980403c authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed caret not moving correctly

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