Skip to content

Commit

Permalink
fix: fix errors from update
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartSquared committed Dec 5, 2024
1 parent cbeb3ac commit feff207
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
5 changes: 3 additions & 2 deletions packages/components/src/__overlays__/Tooltip/v3/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -74,7 +74,8 @@ export const Tooltip = forwardRef<HTMLDivElement, TooltipProps>(
{shouldInlineHiddenContent ? (
<VisuallyHidden>
{typeof children === 'function'
? children({
? contextState &&
children({
placement: 'center',
isEntering: false,
isExiting: false,
Expand Down

0 comments on commit feff207

Please sign in to comment.