Skip to content

Commit 62fdf52

Browse files
authored
Use unique ID for navbar search input (#302)
1 parent 494fada commit 62fdf52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_includes/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ <h4 role="presentation">Skip to main content</h4>
8888

8989
<form class="navbar-form navbar-left" role="search">
9090
<div class="form-group combobox combobox-list">
91-
<input id="search"
91+
<input id="main-search-input"
9292
type="text"
9393
aria-label="Search"
9494
class="form-control st-default-search-input"

_includes/scripts.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
});
4545
}
4646

47-
var search = $('#search');
47+
var search = $('#main-search-input');
4848

4949
var renderResults = function(ctx, data) {
5050
var results = [];
@@ -86,7 +86,7 @@
8686

8787
search.attr('aria-expanded', true);
8888
var button = document.getElementById('cb1-button');
89-
var cba = new ComboboxAutocomplete(document.getElementById('search'), button, document.getElementById('search-results'));
89+
var cba = new ComboboxAutocomplete(document.getElementById('main-search-input'), button, document.getElementById('search-results'));
9090
cba.init();
9191
button.click();
9292
};

0 commit comments

Comments
 (0)