Skip to content

Commit

Permalink
set focus item range start to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
lukad committed May 19, 2024
1 parent 11b366a commit b863b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/hooks/item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function focusItem(item: HTMLLIElement, toEnd: boolean = true) {

if (toEnd) {
const range = document.createRange();
range.setStart(input, 1);
range.setStart(input, 0);
range.collapse(true);

const selection = window.getSelection();
Expand Down

0 comments on commit b863b54

Please sign in to comment.