Skip to content

Commit 146c63f

Browse files
committed
docs: Adjust comments
1 parent ab7eeb0 commit 146c63f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/ContextMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ export interface ContextMenuProps extends HTMLAttributes<HTMLDivElement> {
1818
/**
1919
* Whether to animate the exit of the context menu.
2020
*
21-
* Default: `true`
21+
* @default true
2222
*/
2323
animateExit?: boolean;
2424
/**
2525
* The event that will trigger the context menu.
2626
*
27-
* Default: `contextmenu`
27+
* @default 'contextmenu'
2828
*/
2929
triggerEvent?: 'contextmenu' | 'click';
3030
}

src/components/SubMenu.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ const SubMenu = ({ label, children, className, disabled = false, ...rest }: SubM
8383
style={{ visibility: active ? 'visible' : 'hidden' }}
8484
className="react-context-menu__submenu"
8585
>
86-
{/* rest is sent from the ContextMenu element */}
8786
{cloneChildren(children)}
8887
</div>
8988
</div>

0 commit comments

Comments
 (0)