Skip to content

Commit

Permalink
Merge pull request #4568 from GSA-TTS/main
Browse files Browse the repository at this point in the history
  • Loading branch information
jadudm authored Dec 27, 2024
2 parents 6b5c08d + 524ea19 commit 158ae80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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

0 comments on commit 158ae80

Please sign in to comment.