From b6d3b070978ec7d2b2bdb2f9ba5a97647529cb3f Mon Sep 17 00:00:00 2001 From: Bogdan Tsechoev Date: Wed, 13 Nov 2024 13:56:44 +0000 Subject: [PATCH] fix: Prevent returning footer on Assistant page on mobile --- ui/packages/platform/src/pages/Bot/Command/Command.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ui/packages/platform/src/pages/Bot/Command/Command.tsx b/ui/packages/platform/src/pages/Bot/Command/Command.tsx index fb4aff53..9e5dd1c2 100644 --- a/ui/packages/platform/src/pages/Bot/Command/Command.tsx +++ b/ui/packages/platform/src/pages/Bot/Command/Command.tsx @@ -135,15 +135,6 @@ export const Command = React.memo((props: Props) => { top: 0, behavior: 'smooth' }) - const footer: HTMLElement | null = document.querySelector("footer") - if (footer) footer.style.display = 'flex'; - } - } - - const handleFocus = () => { - if ((window.innerWidth < theme.breakpoints.values.sm) && isMobile) { - const footer: HTMLElement | null = document.querySelector("footer") - if (footer) footer.style.display = 'none'; } } @@ -205,7 +196,6 @@ export const Command = React.memo((props: Props) => { onKeyDown={handleKeyDown} onChange={handleChange} onBlur={handleBlur} - onFocus={handleFocus} InputProps={{ inputRef, classes: {