Skip to content

Commit

Permalink
feat(speciality-search): Ensure it works with uppercase inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonreitz committed May 12, 2022
1 parent d553ce2 commit 33b022c
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 33b022c

Please sign in to comment.