From 3a2a8a06d92cb63f93d41526f623dffa783c166e Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Wed, 22 Oct 2025 14:10:40 -0500 Subject: [PATCH] Bug fix, case-insensitivity now works in dropdown filter. --- inventory/static/js/components/dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory/static/js/components/dropdown.js b/inventory/static/js/components/dropdown.js index cc8068d..256ee0f 100644 --- a/inventory/static/js/components/dropdown.js +++ b/inventory/static/js/components/dropdown.js @@ -2,7 +2,7 @@ const DropDown = globalThis.DropDown ?? (globalThis.DropDown = {}); DropDown.utilities = { filterList(id) { - value = document.getElementById(`${id}-filter`).value; + value = document.getElementById(`${id}-filter`).value.toLowerCase(); list = document.querySelectorAll(`#${id}-dropdown li`); list.forEach(item => {