Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Nov 15, 2024
1 parent 9ec9fab commit 498f385
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libs/InputUtils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ const moveSelectionToEnd: MoveSelectiontoEnd = (input) => {
if (!('setSelectionRange' in input)) {
return;
}
const length = (input as HTMLInputElement).value.length;
input.setSelectionRange(length, length);
const inputElement = input as HTMLInputElement;
const length = inputElement.value.length;
inputElement.setSelectionRange(length, length);
};

export {scrollToBottom, moveSelectionToEnd};

0 comments on commit 498f385

Please sign in to comment.