mirror of
https://github.com/LukeSmithxyz/based.cooking.git
synced 2025-01-22 00:31:43 +00:00
textContent replaces innerText
This commit is contained in:
parent
b7f117cf4c
commit
95133388ea
@ -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…
x
Reference in New Issue
Block a user