From f8334fc1809d0fc2ddf88c5198390d78aa20079d Mon Sep 17 00:00:00 2001 From: Nicolas Le Cam Date: Thu, 24 Oct 2019 01:32:42 +0200 Subject: [PATCH] Prevent form submission as search is done while typing --- lib/ui/src/components/sidebar/SidebarSearch.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ui/src/components/sidebar/SidebarSearch.tsx b/lib/ui/src/components/sidebar/SidebarSearch.tsx index f34a0797a08f..ace8f79c6897 100644 --- a/lib/ui/src/components/sidebar/SidebarSearch.tsx +++ b/lib/ui/src/components/sidebar/SidebarSearch.tsx @@ -118,6 +118,7 @@ export const PureSidebarSearch = ({ className, onChange, ...props }: PureSidebar focussed={focussed} className={className} onReset={() => onChange('')} + onSubmit={e => e.preventDefault()} >