From 33b022c3ec3e4211027d9317a44c53a818b419e8 Mon Sep 17 00:00:00 2001 From: Nelson Reitz Date: Thu, 12 May 2022 13:18:07 +0200 Subject: [PATCH] feat(speciality-search): Ensure it works with uppercase inputs --- assets/js/speciality-search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/speciality-search.js b/assets/js/speciality-search.js index db47ed6..c48a7e0 100644 --- a/assets/js/speciality-search.js +++ b/assets/js/speciality-search.js @@ -5,7 +5,7 @@ document.querySelector('#speciality_filter').addEventListener('keyup', function (e) { var cards = document.querySelectorAll('.card-cell'); for (var i = 0; i < cards.length; i++) { - if (cards[i].attributes['data-speciality-name'].value.includes(e.target.value)) { + if (cards[i].attributes['data-speciality-name'].value.includes(e.target.value.toLowerCase())) { cards[i].style.display = 'flex'; } else { cards[i].style.display = 'none';