Skip to content

Commit

Permalink
Merge pull request #65 from antistatique/feature/speciality-search-caps
Browse files Browse the repository at this point in the history
Ensure speciality search works with uppercase inputs
  • Loading branch information
nelsonreitz authored May 12, 2022
2 parents d553ce2 + 33b022c commit 6bf378b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/speciality-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 6bf378b

Please sign in to comment.