From 95133388ea1096aabb84b629037f04983f80ff07 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 26 May 2022 20:01:39 -0400 Subject: [PATCH] textContent replaces innerText --- content/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_index.md b/content/_index.md index 53c9e99..073f4f3 100644 --- a/content/_index.md +++ b/content/_index.md @@ -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