Skip to content

Commit

Permalink
Исправляет некорректное отображение кнопки сброса фильтра
Browse files Browse the repository at this point in the history
  • Loading branch information
Seasle committed Dec 17, 2023
1 parent c459db4 commit f417e24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/features/task/ui/tasks-filter/ui/TasksFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ export const TasksFilter = () => {
query.isOverdue === undefined;

const onTextChange = (event: ChangeEvent<HTMLInputElement>) => {
const value = event.currentTarget.value;
const isEmpty = value.length === 0;

taskQueryModel.events.setQueryConfig({
text: event.currentTarget.value,
text: !isEmpty ? value : undefined,
});
};

Expand Down

0 comments on commit f417e24

Please sign in to comment.