fkhadra / react-contexify

👌 Add a context menu to your react app with ease

Home Page:https://fkhadra.github.io/react-contexify/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

for dragable modal position of menu is wrong

rrutuja01234 opened this issue · comments

**Do you want to request a feature or report a bug?**bug

What is the current behavior?
I am using modal in my code which is dragable. I am added table in modal and trying to open pop up on button click.But pop up menu position is far way from button location

What is the expected behavior?
Menu should be open at button click position

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
current version 6.0.0

I have a similar problem inside a dropdown menu. On the following video, we don't see my pointer but I'm right clicking on the first image, and the menu opens really far:

Capture.video.du.2023-11-01.19-15-23.webm

I have no idea why, but in my case the menu does not open at the right place because of the presence of the transform css property on the div containing the images with the context menu. When removing it, menu opens at the right place.

image

No idea how to fix this, the only thing that seems to work is to replace the transform by a margin-top, but this is not ideal... if this is not related to the opened issue, I will create a new one !