Skip to content

Commit dc1d580

Browse files
authored
fix form submit on enter (#5958)
1 parent 920f32e commit dc1d580

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Layout/HomeContent.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,10 @@ function VideoList({videos, emptyHeading}) {
14631463
function SearchInput({value, onChange}) {
14641464
const id = useId();
14651465
return (
1466-
<form className="mb-3 py-1" data-hover="SearchInput">
1466+
<form
1467+
className="mb-3 py-1"
1468+
data-hover="SearchInput"
1469+
onSubmit={(e) => e.preventDefault()}>
14671470
<label htmlFor={id} className="sr-only">
14681471
Search
14691472
</label>

0 commit comments

Comments
 (0)