mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 08:01:20 +08:00
Prevent form submission as search is done while typing (#8546)
Prevent form submission as search is done while typing
This commit is contained in:
commit
28e8e837ba
@ -118,6 +118,7 @@ export const PureSidebarSearch = ({ className, onChange, ...props }: PureSidebar
|
||||
focussed={focussed}
|
||||
className={className}
|
||||
onReset={() => onChange('')}
|
||||
onSubmit={e => e.preventDefault()}
|
||||
>
|
||||
<FilterField
|
||||
type="text"
|
||||
|
Loading…
x
Reference in New Issue
Block a user