Skip to content

Commit

Permalink
Feedback: stop event propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
MatissJanis committed Apr 4, 2024
1 parent 82e97f8 commit 135885f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/desktop-client/src/components/NotesButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ export function NotesButton({
...(hasNotes && { display: 'flex !important' }),
...(isOpen && { color: theme.buttonNormalText }),
}}
onClick={() => setIsOpen(true)}
onClick={event => {
event.stopPropagation();
setIsOpen(true);
}}
>
<SvgCustomNotesPaper style={{ width, height }} />
</Button>
Expand Down

0 comments on commit 135885f

Please sign in to comment.