feat: close change editor menu once editor is selected (#907)

This commit is contained in:
Aman Harwara
2022-03-04 18:14:25 +05:30
committed by GitHub
parent d8caa31dc9
commit c150cd6867
3 changed files with 10 additions and 0 deletions

View File

@@ -130,6 +130,9 @@ export const ChangeEditorButton: FunctionComponent<Props> = observer(
setSelectedEditor={setCurrentEditor}
note={note}
groups={editorMenuGroups}
closeMenu={() => {
setOpen(false);
}}
/>
)}
</DisclosurePanel>