diff --git a/libs/remix-ui/helper/src/lib/components/custom-dropdown.tsx b/libs/remix-ui/helper/src/lib/components/custom-dropdown.tsx index 660302611f..b5b12c92da 100644 --- a/libs/remix-ui/helper/src/lib/components/custom-dropdown.tsx +++ b/libs/remix-ui/helper/src/lib/components/custom-dropdown.tsx @@ -20,13 +20,13 @@ export const CustomToggle = React.forwardRef(({ children, onClick, icon, classNa )) -export const CustomIconsToggle = React.forwardRef(({ mouseOverAction, icon, className = '' }: { children?: React.ReactNode, mouseOverAction: (e: SyntheticEvent) => void, icon: string, className: string }, ref: Ref) => ( +export const CustomIconsToggle = React.forwardRef(({ onClick, icon, className = '' }: { children?: React.ReactNode, onClick: () => void, icon: string, className: string }, ref: Ref) => ( { e.preventDefault() + onClick() }} - onMouseOver={mouseOverAction} className={`${className.replace('dropdown-toggle', '')} mb-0 pb-0 d-flex justify-content-end align-items-end remixuimenuicon_shadow`} data-id="workspaceMenuDropdown" > diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index 7088c04670..fc2f619128 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -313,7 +313,7 @@ export function Workspace () { hideIconsMenu(!showIconsMenu) }} className='far fa-edit w-100'> - {' Rename'} + {'Rename'} , - {' Delete'} + {'Delete'} , - {' Download'} + {'Download'} , - {' Restore'} + {'Restore'} , - {' Clone'} + {'Clone'} ] @@ -447,9 +447,8 @@ export function Workspace () { hideIconsMenu(!showIconsMenu)} show={showIconsMenu}> { + onClick={() => { hideIconsMenu(!showIconsMenu) - console.log({ e }) }} icon={'fas fa-bars'} > @@ -461,7 +460,7 @@ export function Workspace () { )) } - +