diff options
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} |