Fixed the query to be case-insensitive in the base account selector in the account form and the account selector in the journal entry form.

This commit is contained in:
依瑪貓 2023-03-20 23:49:01 +08:00
parent e377eac407
commit 760f1c2877
2 changed files with 2 additions and 2 deletions

View File

@ -310,7 +310,7 @@ class BaseAccountSelector {
const queryValues = JSON.parse(option.dataset.queryValues);
let isMatched = false;
for (const queryValue of queryValues) {
if (queryValue.includes(this.#query.value)) {
if (queryValue.toLowerCase().includes(this.#query.value.toLowerCase())) {
isMatched = true;
break;
}

View File

@ -166,7 +166,7 @@ class AccountSelector {
}
const queryValues = JSON.parse(option.dataset.queryValues);
for (const queryValue of queryValues) {
if (queryValue.includes(query.value)) {
if (queryValue.toLowerCase().includes(query.value.toLowerCase())) {
return true;
}
}