mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-29 14:38:50 +00:00
Focus search on click
This commit is contained in:
+3
-1
@@ -65,7 +65,9 @@ const bootstrapDocsSearch = function() {
|
|||||||
overlay.toggleClass('open');
|
overlay.toggleClass('open');
|
||||||
|
|
||||||
if (container.hasClass('open')) {
|
if (container.hasClass('open')) {
|
||||||
$('input#search').focus();
|
console.log('hi');
|
||||||
|
$('input#search-box').focus();
|
||||||
|
console.log('hi2');
|
||||||
}
|
}
|
||||||
|
|
||||||
overlay.css({top: 120});
|
overlay.css({top: 120});
|
||||||
|
|||||||
Reference in New Issue
Block a user