Skip to content

Commit 5bbc285

Browse files
theiliadcalcsam
authored andcommitted
Form currently refreshes the page on pressing enter (#3779)
1 parent 34f422a commit 5bbc285

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

www/src/components/search-form.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ class SearchForm extends Component {
307307
marginBottom: 0,
308308
}}
309309
className="searchWrap"
310+
onSubmit={(e) => e.preventDefault()}
310311
>
311312
<input
312313
id="doc-search"

0 commit comments

Comments
 (0)