Skip to content

Commit b75b9de

Browse files
committed
fix: fix the click events in ViewContainer
1 parent 90369c4 commit b75b9de

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src-commons-ui/float-pane/ViewContainer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export interface Props {
1919
action?: keyof typeof DATATIP_ACTIONS
2020
actionTitle?: string
2121
className?: string
22-
onActionClick?: (event: any) => void
23-
onMouseDown?: (event: any) => void
24-
onClickCapture?: (event: any) => void
22+
onActionClick?: (event: MouseEvent) => void
23+
onMouseDown?: (event: MouseEvent) => void
24+
onClickCapture?: (event: MouseEvent) => void
2525
}
2626

2727
/** A component for a decoration pane */
@@ -34,7 +34,7 @@ export function ViewContainer(props: Props) {
3434
{props.action !== undefined ? (
3535
<div
3636
className={`datatip-pin-button icon-${IconsForAction[props.action]}`}
37-
onClick={() => {
37+
onClick={(event) => {
3838
props.onActionClick?.(event)
3939
}}
4040
title={props.actionTitle}

0 commit comments

Comments
 (0)