Skip to content

Commit

Permalink
Form currently refreshes the page on pressing enter (#3779)
Browse files Browse the repository at this point in the history
  • Loading branch information
theiliad authored and calcsam committed Feb 1, 2018
1 parent 34f422a commit 5bbc285
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/src/components/search-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ class SearchForm extends Component {
marginBottom: 0,
}}
className="searchWrap"
onSubmit={(e) => e.preventDefault()}
>
<input
id="doc-search"
Expand Down

0 comments on commit 5bbc285

Please sign in to comment.