We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90369c4 commit b75b9deCopy full SHA for b75b9de
1 file changed
src-commons-ui/float-pane/ViewContainer.tsx
@@ -19,9 +19,9 @@ export interface Props {
19
action?: keyof typeof DATATIP_ACTIONS
20
actionTitle?: string
21
className?: string
22
- onActionClick?: (event: any) => void
23
- onMouseDown?: (event: any) => void
24
- onClickCapture?: (event: any) => void
+ onActionClick?: (event: MouseEvent) => void
+ onMouseDown?: (event: MouseEvent) => void
+ onClickCapture?: (event: MouseEvent) => void
25
}
26
27
/** A component for a decoration pane */
@@ -34,7 +34,7 @@ export function ViewContainer(props: Props) {
34
{props.action !== undefined ? (
35
<div
36
className={`datatip-pin-button icon-${IconsForAction[props.action]}`}
37
- onClick={() => {
+ onClick={(event) => {
38
props.onActionClick?.(event)
39
}}
40
title={props.actionTitle}
0 commit comments