Skip to content

Commit

Permalink
Bring back search box set value
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmitchell committed Jul 29, 2024
1 parent 283c3ac commit e595181
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions assets/js/modules/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ function ready() {

if(searchTerm) {

var searchBoxes = document.querySelectorAll('.search-box');

searchBoxes.forEach(searchBox => {

searchBox.setAttribute('value', searchTerm);

});

var idx = lunr(function() {

this.field('id');
Expand Down

0 comments on commit e595181

Please sign in to comment.