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 7f268f8 commit 9ec9fab
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/components/Search/SearchRouter/SearchRouterInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ type SearchRouterInputProps = {
/** Whether the offline message should be shown */
shouldShowOfflineMessage?: boolean;

/** Whether the input should be focused */
autoFocus?: boolean;

/** Any additional styles to apply */
wrapperStyle?: StyleProp<ViewStyle>;

Expand Down
2 changes: 1 addition & 1 deletion src/libs/InputUtils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const moveSelectionToEnd: MoveSelectiontoEnd = (input) => {
if (!('setSelectionRange' in input)) {
return;
}
const length = input.value.length;
const length = (input as HTMLInputElement).value.length;
input.setSelectionRange(length, length);

Check failure on line 16 in src/libs/InputUtils/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Unsafe call of an `any` typed value
};

Expand Down
2 changes: 1 addition & 1 deletion src/libs/InputUtils/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {BaseTextInputRef} from '@components/TextInput/BaseTextInput/types';
import type {BaseTextInputRef} from '@components/TextInput/BaseTextInput/types';

type ScrollToBottom = (input: BaseTextInputRef) => void;
type MoveSelectiontoEnd = (input: BaseTextInputRef) => void;
Expand Down

0 comments on commit 9ec9fab

Please sign in to comment.