Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for dragable modal position of menu is wrong #237

Open
rrutuja01234 opened this issue Jan 12, 2023 · 2 comments
Open

for dragable modal position of menu is wrong #237

rrutuja01234 opened this issue Jan 12, 2023 · 2 comments

Comments

@rrutuja01234
Copy link

**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

@celiamercier
Copy link

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

@celiamercier
Copy link

celiamercier commented Nov 1, 2023

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants