fix: search and status filter work together consistently
- 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
This commit is contained in:
@@ -39,8 +39,6 @@ export function SearchBar({
|
||||
onClear();
|
||||
}
|
||||
|
||||
const isSearching = query.trim().length >= 2;
|
||||
|
||||
return (
|
||||
<div className="space-y-2">
|
||||
<div className="relative">
|
||||
@@ -58,7 +56,7 @@ export function SearchBar({
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
{!isSearching && (
|
||||
{(
|
||||
<div className="flex items-center gap-1.5">
|
||||
<Filter size={12} className="text-neutral-600 shrink-0" />
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user