diff --git a/src/components/Search/SearchRouter/SearchRouterInput.tsx b/src/components/Search/SearchRouter/SearchRouterInput.tsx index b92a19ea5c68..3a29282200ce 100644 --- a/src/components/Search/SearchRouter/SearchRouterInput.tsx +++ b/src/components/Search/SearchRouter/SearchRouterInput.tsx @@ -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; diff --git a/src/libs/InputUtils/index.ts b/src/libs/InputUtils/index.ts index 19943bf3132a..b7ad4bb7439f 100644 --- a/src/libs/InputUtils/index.ts +++ b/src/libs/InputUtils/index.ts @@ -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); }; diff --git a/src/libs/InputUtils/types.ts b/src/libs/InputUtils/types.ts index c9d1110397b1..f032537126e5 100644 --- a/src/libs/InputUtils/types.ts +++ b/src/libs/InputUtils/types.ts @@ -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;