Call ev.preventDefault() before calling search()

Signed-off-by: Johan Hammar <johan.hammar@gmail.com>
This commit is contained in:
Johan Hammar
2021-10-05 20:07:03 +02:00
parent 53470ada54
commit ebb2886122
@@ -310,8 +310,8 @@ export function SidebarSearchField(props: SidebarSearchFieldProps) {
const handleEnter: KeyboardEventHandler = ev => {
if (ev.key === 'Enter') {
search();
ev.preventDefault();
search();
}
};