fixed context menu bug

pull/1671/head
Joseph Izang 3 years ago
parent b85ba456ac
commit 214f3a5a66
  1. 2
      libs/remix-ui/vertical-icons-panel/src/lib/components/Icon.tsx
  2. 3
      libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.css
  3. 1
      libs/remix-ui/vertical-icons-panel/src/lib/vertical-icons-context-menu.tsx

@ -81,6 +81,7 @@ function Icon ({
setShowContext(true)
}
function closeContextMenu () {
console.log('watch me!!!')
setShowContext(false)
}
@ -106,7 +107,6 @@ function Icon ({
e.stopPropagation()
handleContextMenu(e)
}}
onBlur={closeContextMenu}
data-id={`verticalIconsKind${name}`}
id={`verticalIconsKind${name}`}
ref={iconRef}

@ -72,6 +72,9 @@
z-index: 1000;
box-shadow: 0 0 4px var(--dark);
}
.remixui_verticalIconContextcontainer:focus {
outline: 0;
}
.remixui_liitem {
padding: 2px;
padding-left: 6px;

@ -62,6 +62,7 @@ function VerticalIconsContextMenu (props: VerticalIconsContextMenuProps) {
}}
ref={menuRef}
tabIndex={1}
>
<ul id="menuitems">
<MenuForLinks

Loading…
Cancel
Save