From 0911b41cdfa35bf9863b611379d7091fe0ff7181 Mon Sep 17 00:00:00 2001 From: Nigel Date: Fri, 12 Feb 2021 20:20:36 -0300 Subject: [PATCH] feat: added anchor in the showTooltipFromEvent type definition in TooltipActionsContextData --- packages/tooltip/src/context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tooltip/src/context.ts b/packages/tooltip/src/context.ts index 87c5134b0..75a346019 100644 --- a/packages/tooltip/src/context.ts +++ b/packages/tooltip/src/context.ts @@ -7,7 +7,7 @@ export interface TooltipActionsContextData { position: [number, number], anchor?: TooltipAnchor ) => void - showTooltipFromEvent: (content: JSX.Element, event: MouseEvent) => void + showTooltipFromEvent: (content: JSX.Element, event: MouseEvent, anchor?: TooltipAnchor) => void hideTooltip: () => void }