Skip to content

Commit

Permalink
Merge pull request #4533 from alphagov/fix-filtering
Browse files Browse the repository at this point in the history
Fix implementation record filtering
  • Loading branch information
andysellick committed Mar 5, 2024
2 parents 195e422 + 5cb2108 commit 5501aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/javascripts/filter-list.js
Expand Up @@ -30,7 +30,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
// show/hide children
for (var j = 0; j < children.length; j++) {
var child = children[j]
var text = child.innerText.toLowerCase()
var text = child.textContent.toLowerCase()
this.showHide(text, searchTerm, child)
}
// show/hide title
Expand All @@ -40,7 +40,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
title.classList.remove('filter-list-hidden')
}
} else {
var text = current.innerText.toLowerCase()
var text = current.textContent.toLowerCase()
this.showHide(text, searchTerm, current)
}
}
Expand Down

0 comments on commit 5501aad

Please sign in to comment.