From feff207bb256a1d51efdec6a4e995408e201baa2 Mon Sep 17 00:00:00 2001 From: Cassandra Tam Date: Thu, 5 Dec 2024 15:44:26 +1100 Subject: [PATCH] fix: fix errors from update --- .../MultiSelectOption/MultiSelectOption.spec.tsx | 1 + packages/components/src/__overlays__/Tooltip/v3/Tooltip.tsx | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/components/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.spec.tsx b/packages/components/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.spec.tsx index 387c888e3c7..4a419d47530 100644 --- a/packages/components/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.spec.tsx +++ b/packages/components/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.spec.tsx @@ -19,6 +19,7 @@ vi.mock('../../context', () => ({ })) const itemMock: MultiSelectOptionProps['item'] & { value: ItemType } = { + index: 0, type: 'type-mock', key: 'key-mock', value: { label: 'label-mock', value: 'value-mock' }, diff --git a/packages/components/src/__overlays__/Tooltip/v3/Tooltip.tsx b/packages/components/src/__overlays__/Tooltip/v3/Tooltip.tsx index a1d3eb387b1..43f5db9265b 100644 --- a/packages/components/src/__overlays__/Tooltip/v3/Tooltip.tsx +++ b/packages/components/src/__overlays__/Tooltip/v3/Tooltip.tsx @@ -2,7 +2,7 @@ import React, { forwardRef, useContext, useLayoutEffect, useState } from 'react' import { Tooltip as RACTooltip, TooltipContext, - TooltipProps as RACTooltipProps, + type TooltipProps as RACTooltipProps, TooltipTriggerStateContext, useContextProps, } from 'react-aria-components' @@ -74,7 +74,8 @@ export const Tooltip = forwardRef( {shouldInlineHiddenContent ? ( {typeof children === 'function' - ? children({ + ? contextState && + children({ placement: 'center', isEntering: false, isExiting: false,