diff options
author | Hailey <me@haileyok.com> | 2024-05-23 11:04:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 11:04:20 -0700 |
commit | e5fc0baa6ae1623abc1e8d6a50de00d3927248e2 (patch) | |
tree | 24dfdcbf2b3228cddd1063183e8f7b3dc4dac850 /src | |
parent | 0e77280310e03482525b31d5a907a2820509641b (diff) | |
download | voidsky-e5fc0baa6ae1623abc1e8d6a50de00d3927248e2.tar.zst |
disable alt text auto focus on Android (#4198)
* disable alt text auto focus on Android * revert timeout change
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/modals/AltImage.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/com/modals/AltImage.tsx b/src/view/com/modals/AltImage.tsx index 197a6079e..ba489cde7 100644 --- a/src/view/com/modals/AltImage.tsx +++ b/src/view/com/modals/AltImage.tsx @@ -20,7 +20,7 @@ import {usePalette} from 'lib/hooks/usePalette' import {enforceLen} from 'lib/strings/helpers' import {gradients, s} from 'lib/styles' import {useTheme} from 'lib/ThemeContext' -import {isWeb} from 'platform/detection' +import {isAndroid, isWeb} from 'platform/detection' import {ImageModel} from 'state/models/media/image' import {Text} from '../util/text/Text' import {ScrollView, TextInput} from './util' @@ -44,6 +44,7 @@ export function Component({image}: Props) { // Autofocus hack when we open the modal. We have to wait for the animation to complete first React.useEffect(() => { + if (isAndroid) return setTimeout(() => { inputRef.current?.focus() }, 500) |