Fix #538 - Do not concatenate search for items (#726)

Remove misleading code - searchIn parameter is not parsed for virtual lists

Signed-off-by: Eiko Wagenknecht <eiko.wagenknecht@web.de>
pull/741/head
Eiko Wagenknecht 2020-12-31 18:13:59 +01:00 committed by GitHub
parent 7d6579a622
commit 70b423d408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -11,7 +11,6 @@
class="searchbar-items"
:init="initSearchbar"
search-container=".virtual-list"
search-in=".item-title, .item-subtitle, .item-footer"
:disable-button="!$theme.aurora"
></f7-searchbar>
</f7-subnavbar>
@ -183,7 +182,7 @@ export default {
for (let i = 0; i < items.length; i += 1) {
var haystack = items[i].name
if (items[i].label) haystack += ' ' + items[i].label
haystack += this.getItemTypeAndMetaLabel(items[i])
haystack += ' ' + this.getItemTypeAndMetaLabel(items[i])
if (
haystack.toLowerCase().indexOf(query.toLowerCase()) >= 0 ||
query.trim() === ''