Dismiss keyboard before opening mobile tab switcher sheet
This commit is contained in:
@@ -4,6 +4,7 @@ import { useIsFocused } from "@react-navigation/native";
|
|||||||
import {
|
import {
|
||||||
ActivityIndicator,
|
ActivityIndicator,
|
||||||
BackHandler,
|
BackHandler,
|
||||||
|
Keyboard,
|
||||||
Platform,
|
Platform,
|
||||||
Pressable,
|
Pressable,
|
||||||
Text,
|
Text,
|
||||||
@@ -377,7 +378,10 @@ const MobileWorkspaceTabSwitcher = memo(function MobileWorkspaceTabSwitcher({
|
|||||||
accessibilityRole="button"
|
accessibilityRole="button"
|
||||||
accessibilityLabel={`Switch tabs (${tabs.length} open)`}
|
accessibilityLabel={`Switch tabs (${tabs.length} open)`}
|
||||||
style={({ pressed }) => [styles.switcherTrigger, pressed && styles.switcherTriggerPressed]}
|
style={({ pressed }) => [styles.switcherTrigger, pressed && styles.switcherTriggerPressed]}
|
||||||
onPress={() => setIsOpen(true)}
|
onPress={() => {
|
||||||
|
Keyboard.dismiss();
|
||||||
|
setIsOpen(true);
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<View style={styles.switcherTriggerLeft}>
|
<View style={styles.switcherTriggerLeft}>
|
||||||
<MobileActiveTabTrigger
|
<MobileActiveTabTrigger
|
||||||
|
|||||||
Reference in New Issue
Block a user