From af76f4a24aacdf36694cb39016e355778a27953e Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Mon, 6 Oct 2025 07:44:59 +1100 Subject: [PATCH] Prevent input field from focusing on touch devices rather than mobile (#6105) --- ui/v2.5/src/components/List/Filters/FilterSidebar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/v2.5/src/components/List/Filters/FilterSidebar.tsx b/ui/v2.5/src/components/List/Filters/FilterSidebar.tsx index 9ad2fe152..1623c83d7 100644 --- a/ui/v2.5/src/components/List/Filters/FilterSidebar.tsx +++ b/ui/v2.5/src/components/List/Filters/FilterSidebar.tsx @@ -30,9 +30,9 @@ export const FilteredSidebarHeader: React.FC<{ const [, setFocus] = focus; // Set the focus on the input field when the sidebar is opened - // Don't do this on mobile devices + // Don't do this on touch devices useEffect(() => { - if (sidebarOpen && !ScreenUtils.isMobile()) { + if (sidebarOpen && !ScreenUtils.isTouch()) { setFocus(); } }, [sidebarOpen, setFocus]);