Skip to content

Commit

Permalink
Remove autofocus that cause issue on FF
Browse files Browse the repository at this point in the history
The attribute "autofocus" cause Firefox to scroll down. Since we have already set focus on the text field when we open the search modal, we don't need "autofocus" attribute any more.

fixes #69
  • Loading branch information
kakawait committed Dec 4, 2016
1 parent 525fe95 commit 6b20dcb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions layouts/partials/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
<i class="search-icon fa fa-search"></i>
<form id="algolia-search-form">
<input type="text" id="algolia-search-input" name="search"
class="form-control input--large search-input" placeholder="{{ i18n "global.search" }}"
autofocus="autofocus"/>
class="form-control input--large search-input" placeholder="{{ i18n "global.search" }}" />
</form>
</div>
<div class="modal-body">
Expand Down

0 comments on commit 6b20dcb

Please sign in to comment.