Focus Algolia search input

This commit is contained in:
Michael Rose 2018-02-16 15:12:57 -05:00
parent d720398c24
commit 356c1eb093
4 changed files with 15 additions and 3 deletions

View file

@ -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) ## [4.10.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.10.0)
### Enhancements ### Enhancements

View file

@ -57,7 +57,7 @@ $(document).ready(function() {
$(".initial-content").toggleClass("is--hidden"); $(".initial-content").toggleClass("is--hidden");
// set focus on input // set focus on input
setTimeout(function() { setTimeout(function() {
$("#search").focus(); $(".search-content input").focus();
}, 400); }, 400);
}); });

File diff suppressed because one or more lines are too long

View file

@ -4,10 +4,16 @@ permalink: /docs/history/
excerpt: "Change log of enhancements and bug fixes made to the theme." excerpt: "Change log of enhancements and bug fixes made to the theme."
sidebar: sidebar:
nav: docs nav: docs
last_modified_at: 2018-02-16T14:25:39-05:00 last_modified_at: 2018-02-16T15:12:42-05:00
toc: true 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) ## [4.10.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.10.0)
### Enhancements ### Enhancements