From a4eb7d06fedc58ede7107b7cf31124fc24ab0e62 Mon Sep 17 00:00:00 2001 From: Diogo Date: Mon, 30 Dec 2024 22:08:48 +0000 Subject: [PATCH] reset search text if active filter is changed --- apps/ios/Shared/Views/ChatList/ChatListView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/ios/Shared/Views/ChatList/ChatListView.swift b/apps/ios/Shared/Views/ChatList/ChatListView.swift index 18a6f0bdfc..3f6142a9f8 100644 --- a/apps/ios/Shared/Views/ChatList/ChatListView.swift +++ b/apps/ios/Shared/Views/ChatList/ChatListView.swift @@ -622,6 +622,9 @@ struct ChatListSearchBar: View { } } } + .onChange(of: chatTagsModel.activeFilter) { _ in + searchText = "" + } .alert(item: $alert) { a in planAndConnectAlert(a, dismiss: true, cleanup: { searchText = "" }) }