Skip to content

Commit

Permalink
fix breaking changes: dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvernes committed Jun 20, 2023
1 parent 3ad700c commit 94305a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/eds-core-react/src/components/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ export const Dialog = forwardRef<HTMLDivElement, DialogProps>(function Dialog(
) {
const { density } = useEds()
const token = useToken({ density }, dialogToken)
const { floating, context } = useFloating()
const { refs, context } = useFloating()
const handleDismiss = () => {
onClose && onClose()
}

const dialogRef = useMemo(
() => mergeRefs<HTMLDivElement>(floating, ref),
[floating, ref],
() => mergeRefs<HTMLDivElement>(refs.setFloating, ref),
[refs.setFloating, ref],
)

const rest = {
Expand Down

0 comments on commit 94305a8

Please sign in to comment.