textContent replaces innerText

pull/610/merge
Luke Smith 2 years ago
parent b7f117cf4c
commit 95133388ea
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

@ -27,7 +27,7 @@ document.addEventListener('DOMContentLoaded', () => {
// for each recipe hide all but matched
let matchCount = 0;
rec.forEach(el => {
const recipeName = el.innerText.toLowerCase()
const recipeName = el.textContent.toLowerCase()
const isMatch = recipeName.includes(searchText)
el.hidden = !isMatch

Loading…
Cancel
Save