Dismiss keyboard before opening mobile tab switcher sheet

This commit is contained in:
Mohamed Boudra
2026-03-21 20:47:42 +07:00
parent d41808efe1
commit 0af666e3ac
@@ -4,6 +4,7 @@ import { useIsFocused } from "@react-navigation/native";
import {
ActivityIndicator,
BackHandler,
Keyboard,
Platform,
Pressable,
Text,
@@ -377,7 +378,10 @@ const MobileWorkspaceTabSwitcher = memo(function MobileWorkspaceTabSwitcher({
accessibilityRole="button"
accessibilityLabel={`Switch tabs (${tabs.length} open)`}
style={({ pressed }) => [styles.switcherTrigger, pressed && styles.switcherTriggerPressed]}
onPress={() => setIsOpen(true)}
onPress={() => {
Keyboard.dismiss();
setIsOpen(true);
}}
>
<View style={styles.switcherTriggerLeft}>
<MobileActiveTabTrigger