Skip to content

Commit

Permalink
fix(test): update mousePosition check (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVolland committed May 15, 2024
1 parent 7b76d8d commit d08ea9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dialog/Content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Content = React.forwardRef<ContentRef, ContentProps>((props, ref) => {
const elementOffset = offset(dialogRef.current);

setTransformOrigin(
mousePosition
(mousePosition?.x && mousePosition?.y)
? `${mousePosition.x - elementOffset.left}px ${mousePosition.y - elementOffset.top}px`
: '',
);
Expand Down

0 comments on commit d08ea9e

Please sign in to comment.