Skip to content

Commit

Permalink
solution7
Browse files Browse the repository at this point in the history
  • Loading branch information
RuslanMudryi committed Jan 7, 2025
1 parent 6e4e030 commit b87a52a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/TodoHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ export const TodoHeader: React.FC<Props> = ({
try {
await addNewTodo();
changeQuery('');
} finally {
setDisabledSearchInput(false);
searchInput.current?.focus();
}
} catch (err) {}

setDisabledSearchInput(false);
searchInput.current?.focus();
};

const toggleAllHandler = async () => {
Expand Down

0 comments on commit b87a52a

Please sign in to comment.