Call ev.preventDefault() before calling search()
Signed-off-by: Johan Hammar <johan.hammar@gmail.com>
This commit is contained in:
@@ -310,8 +310,8 @@ export function SidebarSearchField(props: SidebarSearchFieldProps) {
|
||||
|
||||
const handleEnter: KeyboardEventHandler = ev => {
|
||||
if (ev.key === 'Enter') {
|
||||
search();
|
||||
ev.preventDefault();
|
||||
search();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user