diff --git a/src/views/mobile/transactions/ListPage.vue b/src/views/mobile/transactions/ListPage.vue index 9814aa9d..d97a838d 100644 --- a/src/views/mobile/transactions/ListPage.vue +++ b/src/views/mobile/transactions/ListPage.vue @@ -16,7 +16,7 @@ - + @@ -1300,6 +1300,18 @@ function filterMultipleTags(): void { props.f7router.navigate('/settings/filter/tag?type=transactionListCurrent'); } +function toggleSearchbar(): void { + if (!showSearchbar.value) { + showSearchbar.value = true; + } else { + showSearchbar.value = false; + + if (query.value.keyword) { + changeKeywordFilter(''); + } + } +} + function changeKeywordFilter(keyword: string): void { if (query.value.keyword === keyword) { return;