mirror of
https://github.com/we-promise/sure.git
synced 2026-05-30 15:59:02 +00:00
Merge branch 'main' into feat/goals-v2-architecture
This commit is contained in:
@@ -7,9 +7,9 @@ export default class extends Controller {
|
||||
const query = this.inputTarget.value.toLocaleLowerCase().trim();
|
||||
let visibleCount = 0;
|
||||
|
||||
this.itemTargets.forEach(item => {
|
||||
const name = item.dataset.bankName?.toLocaleLowerCase() ?? "";
|
||||
const match = name.includes(query);
|
||||
this.itemTargets.forEach((item) => {
|
||||
const haystack = (item.dataset.bankSearch ?? "").toLocaleLowerCase();
|
||||
const match = haystack.includes(query);
|
||||
item.style.display = match ? "" : "none";
|
||||
if (match) visibleCount++;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user