elixir-toolkit-theme 1.18.0 → 1.19.0

Sign up to get free protection for your applications and to get access to all the features.
data/assets/js/search.js CHANGED
@@ -95,9 +95,11 @@ permalink: assets/js/search.js
95
95
  hideSearch();
96
96
  } else {
97
97
  showSearch();
98
- // scroll search input into view, workaround for iOS Safari
99
- window.scroll(0, -1);
100
- setTimeout(function () { window.scroll(0, 0); }, 0);
98
+ var hero = document.getElementById("search-section");
99
+ if(hero){
100
+ document.querySelector('#search-section').scrollIntoView();
101
+ }
102
+
101
103
  }
102
104
  if (input === currentInput) {
103
105
  return;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elixir-toolkit-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0
4
+ version: 1.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bedroesb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-28 00:00:00.000000000 Z
11
+ date: 2022-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll