Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

close keyboard before opening modal (#5124)

authored by

Samuel Newman and committed by
GitHub
39f74ced 3ee5ef32

+5 -2
+5 -2
src/view/com/composer/videos/SubtitleDialog.tsx
··· 1 1 import React, {useCallback} from 'react' 2 - import {StyleProp, View, ViewStyle} from 'react-native' 2 + import {Keyboard, StyleProp, View, ViewStyle} from 'react-native' 3 3 import RNPickerSelect from 'react-native-picker-select' 4 4 import {msg, Trans} from '@lingui/macro' 5 5 import {useLingui} from '@lingui/react' ··· 45 45 size="xsmall" 46 46 color="secondary" 47 47 variant="ghost" 48 - onPress={control.open}> 48 + onPress={() => { 49 + if (Keyboard.isVisible()) Keyboard.dismiss() 50 + control.open() 51 + }}> 49 52 <ButtonIcon icon={CCIcon} /> 50 53 <ButtonText> 51 54 {isWeb ? <Trans>Captions & alt text</Trans> : <Trans>Alt text</Trans>}