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:
parent
e377eac407
commit
760f1c2877
@ -310,7 +310,7 @@ class BaseAccountSelector {
|
|||||||
const queryValues = JSON.parse(option.dataset.queryValues);
|
const queryValues = JSON.parse(option.dataset.queryValues);
|
||||||
let isMatched = false;
|
let isMatched = false;
|
||||||
for (const queryValue of queryValues) {
|
for (const queryValue of queryValues) {
|
||||||
if (queryValue.includes(this.#query.value)) {
|
if (queryValue.toLowerCase().includes(this.#query.value.toLowerCase())) {
|
||||||
isMatched = true;
|
isMatched = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -166,7 +166,7 @@ class AccountSelector {
|
|||||||
}
|
}
|
||||||
const queryValues = JSON.parse(option.dataset.queryValues);
|
const queryValues = JSON.parse(option.dataset.queryValues);
|
||||||
for (const queryValue of queryValues) {
|
for (const queryValue of queryValues) {
|
||||||
if (queryValue.includes(query.value)) {
|
if (queryValue.toLowerCase().includes(query.value.toLowerCase())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user