Skip to content

Commit

Permalink
remove deprecated useDelayGroupContext (#2188)
Browse files Browse the repository at this point in the history
also bumped floating-ui to latest.
  • Loading branch information
mayank99 authored Aug 8, 2024
1 parent d83f204 commit 49679a8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .changeset/ten-dryers-sleep.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@itwin/itwinui-react': minor
---

Bumped the minimum version of `@floating-ui/react` to `0.26.20`.
Bumped the minimum version of `@floating-ui/react` to `0.26.22`.
2 changes: 1 addition & 1 deletion packages/itwinui-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"dev:styles": "pnpm build:styles --watch"
},
"dependencies": {
"@floating-ui/react": "^0.26.20",
"@floating-ui/react": "^0.26.22",
"@itwin/itwinui-illustrations-react": "^2.1.0",
"@swc/helpers": "^0.5.11",
"@tanstack/react-virtual": "^3.8.2",
Expand Down
5 changes: 1 addition & 4 deletions packages/itwinui-react/src/core/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
autoPlacement,
hide,
inline,
useDelayGroupContext,
useDelayGroup,
} from '@floating-ui/react';
import type { Placement } from '@floating-ui/react';
Expand Down Expand Up @@ -200,9 +199,7 @@ const useTooltip = (options: TooltipOptions = {}) => {
[ariaStrategy, id],
);

const { delay } = useDelayGroupContext();

useDelayGroup(floating.context, { id: useId() });
const { delay } = useDelayGroup(floating.context, { id: useId() });

const interactions = useInteractions([
useHover(floating.context, {
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 49679a8

Please sign in to comment.