Commit 28316b02 authored by janis.streib's avatar janis.streib 🦉
Browse files

UPD: better default search function

parent 6f27264e
......@@ -44,10 +44,10 @@ export default {
type: Function,
default() {
return function (item, term) {
term = term.toLowerCase()
for (const v of Object.values(item)) {
window.console.debug(typeof v)
if (typeof v === 'string') {
if (v.includes(term)) {
if (v.toLowerCase().includes(term)) {
return true
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment