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:
		| @@ -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; | ||||
|                     } | ||||
|   | ||||
| @@ -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; | ||||
|                 } | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user