Skip to content

Commit

Permalink
fix(client): always close notes list action menu after any action, cl…
Browse files Browse the repository at this point in the history
…oses #149
  • Loading branch information
neopostmodern committed Aug 6, 2022
1 parent 12e7930 commit 2ef6ccf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/renderer/components/NotesListActionMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ const NotesListActionMenu = ({ note }: { note: NoteObject }) => {
anchorEl={anchorEl}
keepMounted
open={Boolean(anchorEl)}
onClick={() => {
handleClose();
}}
onClose={handleClose}
>
{'url' in note && note.url && (
Expand All @@ -73,7 +76,6 @@ const NotesListActionMenu = ({ note }: { note: NoteObject }) => {
<MenuItem
onClick={() => {
toggleArchivedNote();
handleClose();
}}
>
<ListItemIcon>
Expand All @@ -86,7 +88,6 @@ const NotesListActionMenu = ({ note }: { note: NoteObject }) => {
note={note}
loading={deleteLinkLoading}
deleteNote={() => {
handleClose();
deleteNote();
}}
/>
Expand Down

0 comments on commit 2ef6ccf

Please sign in to comment.