From b48cc040e1166c75535575d183f1679c25f885f5 Mon Sep 17 00:00:00 2001 From: "diana.dolgolyova" Date: Tue, 24 Mar 2026 17:23:16 +0300 Subject: [PATCH] fix: search and status filter work together consistently MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Status filter chips stay visible during text search - Search results filtered by selected status (search + filter = AND) - Shows "Нет записей по фильтру" when search has results but filter excludes all --- src/app/admin/bookings/SearchBar.tsx | 4 +--- src/app/admin/bookings/page.tsx | 13 +++++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/app/admin/bookings/SearchBar.tsx b/src/app/admin/bookings/SearchBar.tsx index 8c061c4..8730536 100644 --- a/src/app/admin/bookings/SearchBar.tsx +++ b/src/app/admin/bookings/SearchBar.tsx @@ -39,8 +39,6 @@ export function SearchBar({ onClear(); } - const isSearching = query.trim().length >= 2; - return (
@@ -58,7 +56,7 @@ export function SearchBar({ )}
- {!isSearching && ( + {(