Skip to content

Commit

Permalink
fix(note): prevent dialog textbox flickering (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
domhhv authored Jan 27, 2025
1 parent 26dfe80 commit bbfd99c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/calendar-month/NoteDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ const NoteDialog = ({ open, onClose, date }: NoteDialogProps) => {
if (existingNote?.content && !content) {
setContent(existingNote.content);
}

return () => {
setContent('');
};
}, [existingNote, content]);

const handleSubmit: MouseEventHandler<HTMLButtonElement> = async (event) => {
Expand Down

0 comments on commit bbfd99c

Please sign in to comment.