Skip to content

Commit 0db4241

Browse files
committed
Merge branch 'main' of https://github.com/reactjs/reactjs.org into sync-dc1d5802
2 parents 8aa9c0b + dc1d580 commit 0db4241

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
@@ -1444,7 +1444,10 @@ function VideoList({videos, emptyHeading}) {
14441444
function SearchInput({value, onChange}) {
14451445
const id = useId();
14461446
return (
1447-
<form className="mb-3 py-1" data-hover="SearchInput">
1447+
<form
1448+
className="mb-3 py-1"
1449+
data-hover="SearchInput"
1450+
onSubmit={(e) => e.preventDefault()}>
14481451
<label htmlFor={id} className="sr-only">
14491452
Search
14501453
</label>

0 commit comments

Comments
 (0)