From 0b2665a01bb44aa62ad669f9f83cd27141364f9a Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Thu, 20 May 2021 15:29:19 -0300 Subject: [PATCH] fix: revert using portal for ellipsis menu --- .../components/NotesOptionsPanel.tsx | 46 +++++++++---------- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/app/assets/javascripts/components/NotesOptionsPanel.tsx b/app/assets/javascripts/components/NotesOptionsPanel.tsx index 886eda79f..d1e3b4d84 100644 --- a/app/assets/javascripts/components/NotesOptionsPanel.tsx +++ b/app/assets/javascripts/components/NotesOptionsPanel.tsx @@ -56,31 +56,27 @@ export const NotesOptionsPanel = observer(({ appState }: Props) => { Actions - -
- { - if (event.key === 'Escape' && !submenuOpen) { - setOpen(false); - buttonRef.current.focus(); - } - }} - ref={panelRef} - style={{ - ...position, - }} - className="sn-dropdown flex flex-col py-2" - > - {open && ( - - )} - -
-
+ { + if (event.key === 'Escape' && !submenuOpen) { + setOpen(false); + buttonRef.current.focus(); + } + }} + ref={panelRef} + style={{ + ...position, + }} + className="sn-dropdown flex flex-col py-2" + > + {open && ( + + )} + ); });