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

ContextMenu wrong possition. x6 v2 #3906

Closed
novokip opened this issue Sep 12, 2023 · 2 comments · Fixed by #3942
Closed

ContextMenu wrong possition. x6 v2 #3906

novokip opened this issue Sep 12, 2023 · 2 comments · Fixed by #3942

Comments

@novokip
Copy link

novokip commented Sep 12, 2023

Describe the bug

I looked at example in documentation https://x6.antv.antgroup.com/examples/edge/tool#context-menu, where ContextMenu working correctly. But when i opened this example in codesandbox https://codesandbox.io/s/4sordy , I saw a problem - right click on the node show contextMenu at left top possition. also when I moved this example to my project the problem hasn't gone away. Also in console log you can see errors according react api, because react 18 api changed.
used versions:
react 18
antd 5.9
antv/x6 2.14.1

Your Example Website or App

https://codesandbox.io/s/4sordy

Steps to Reproduce the Bug or Issue

  1. Go to https://codesandbox.io/s/4sordy
  2. right click any node
  3. the result is that menu shown in wrong position

Expected behavior

I expected that menu should shown at the position where I right-clicked on the node

Screenshots or Videos

image
image

Platform

  • OS: Windows 10
  • Browser: Chrome
  • Version: 2.14.1

Additional context

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 12, 2023

👋 @novokip

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 27, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Sep 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant