We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b76d8d commit d08ea9eCopy full SHA for d08ea9e
src/Dialog/Content/index.tsx
@@ -41,7 +41,7 @@ const Content = React.forwardRef<ContentRef, ContentProps>((props, ref) => {
41
const elementOffset = offset(dialogRef.current);
42
43
setTransformOrigin(
44
- mousePosition
+ (mousePosition?.x && mousePosition?.y)
45
? `${mousePosition.x - elementOffset.left}px ${mousePosition.y - elementOffset.top}px`
46
: '',
47
);
0 commit comments