Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024-12-27 | MAIN --> PROD | DEV (524ea19) --> STAGING #4568

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions backend/static/js/search-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ function attachEventHandlersSorting() {
*/
function attachEventHandlersSubmission() {
search_submit_buttons.forEach((button) => {

// The first search button is always for searching all of fac.gov, we want to ignore that one hence skipping.
if (button.id === 'fac-search') return;

button.addEventListener('click', () => {
// The arrow won't be there if results were previously populated
if (search_arrow) {
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/includes/nav_primary.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
Search
</label>
<input class="usa-input" id="query" type="search" name="query" placeholder="Search www.fac.gov">
<button class="usa-button bg-primary-darker" type="submit" aria-label='Search' data-disable-with="Search">
<button id="fac-search" class="usa-button bg-primary-darker" type="submit" aria-label='Search' data-disable-with="Search">
<svg class="usa-icon" aria-hidden="true" focusable="false" role="img">
{% uswds_sprite "search" %}
</svg>
Expand Down
Loading