diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-10-16 18:52:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-16 08:52:14 -0700 |
commit | 6bc00f8d714fa1113d03f57ec06caccd4ffbb9dc (patch) | |
tree | 852790dfdfcc04584a56496e8219c08414120773 /src/view/com/composer/Composer.tsx | |
parent | c3d0cc55d98fb32b25cd2164cfa1c399985e7c84 (diff) | |
download | voidsky-6bc00f8d714fa1113d03f57ec06caccd4ffbb9dc.tar.zst |
Composer - Self label dialog ALF rewrite (#4354)
Diffstat (limited to 'src/view/com/composer/Composer.tsx')
-rw-r--r-- | src/view/com/composer/Composer.tsx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index a45477d11..2f28b9665 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -499,10 +499,6 @@ export const ComposePost = ({ openEmojiPicker?.(textInput.current?.getCursorPosition()) }, [openEmojiPicker]) - const focusTextInput = useCallback(() => { - textInput.current?.focus() - }, []) - const onSelectGif = useCallback((gif: Gif) => { dispatch({type: 'embed_add_gif', gif}) }, []) @@ -808,11 +804,7 @@ export const ComposePost = ({ disabled={!canSelectImages} onAdd={onImageAdd} /> - <SelectGifBtn - onClose={focusTextInput} - onSelectGif={onSelectGif} - disabled={hasMedia} - /> + <SelectGifBtn onSelectGif={onSelectGif} disabled={hasMedia} /> {!isMobile ? ( <Button onPress={onEmojiButtonPress} |