fix: bottom nav disappears after visiting payment page in Telegram

- Reset isKeyboardOpen on route change so bottom nav always restores
- Disable autoFocus on payment input in Telegram Mini App
- Skip auto-focus on Profile email inputs in Telegram
This commit is contained in:
c0mrade
2026-03-27 13:40:13 +03:00
parent 5246ad2a09
commit 3b659b7450
3 changed files with 14 additions and 6 deletions

View File

@@ -221,6 +221,11 @@ export function AppShell({ children }: AppShellProps) {
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
const [isKeyboardOpen, setIsKeyboardOpen] = useState(false);
// Reset keyboard state on route change — prevents bottom nav staying hidden after navigation
useEffect(() => {
setIsKeyboardOpen(false);
}, [location.pathname]);
// Keyboard detection for hiding bottom nav
useEffect(() => {
const handleFocusIn = (e: FocusEvent) => {