mirror of
https://github.com/LukeSmithxyz/based.cooking.git
synced 2025-01-22 08:40:50 +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
|
// for each recipe hide all but matched
|
||||||
let matchCount = 0;
|
let matchCount = 0;
|
||||||
rec.forEach(el => {
|
rec.forEach(el => {
|
||||||
const recipeName = el.innerText.toLowerCase()
|
const recipeName = el.textContent.toLowerCase()
|
||||||
const isMatch = recipeName.includes(searchText)
|
const isMatch = recipeName.includes(searchText)
|
||||||
|
|
||||||
el.hidden = !isMatch
|
el.hidden = !isMatch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user