Skip to content

Commit

Permalink
Focus Algolia search input
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed Feb 16, 2018
1 parent e5d517f commit a0eb6c6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Unreleased

### Bug Fixes

* Focus Algolia search input after clicking on search toggle.

## [4.10.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.10.0)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion assets/js/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ $(document).ready(function() {
$(".initial-content").toggleClass("is--hidden");
// set focus on input
setTimeout(function() {
$("#search").focus();
$(".search-content input").focus();
}, 400);
});

Expand Down
2 changes: 1 addition & 1 deletion assets/js/main.min.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion docs/_docs/18-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ permalink: /docs/history/
excerpt: "Change log of enhancements and bug fixes made to the theme."
sidebar:
nav: docs
last_modified_at: 2018-02-16T14:25:39-05:00
last_modified_at: 2018-02-16T15:12:42-05:00
toc: true
---

## Unreleased

### Bug Fixes

* Focus Algolia search input after clicking on search toggle.

## [4.10.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.10.0)

### Enhancements
Expand Down

0 comments on commit a0eb6c6

Please sign in to comment.