mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user