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

@@ -148,6 +148,9 @@ export const ChangeEditorOption: FunctionComponent<ChangeEditorOptionProps> = ({
note={note}
groups={editorMenuGroups}
isOpen={changeEditorMenuVisible}
closeMenu={() => {
setChangeEditorMenuOpen(false);
}}
/>
)}
</DisclosurePanel>