Skip to content

Commit

Permalink
Prevent form submission as search is done while typing (#8546)
Browse files Browse the repository at this point in the history
Prevent form submission as search is done while typing
  • Loading branch information
shilman authored Oct 24, 2019
2 parents d99eeab + f8334fc commit 28e8e83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ui/src/components/sidebar/SidebarSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export const PureSidebarSearch = ({ className, onChange, ...props }: PureSidebar
focussed={focussed}
className={className}
onReset={() => onChange('')}
onSubmit={e => e.preventDefault()}
>
<FilterField
type="text"
Expand Down

0 comments on commit 28e8e83

Please sign in to comment.