antvis / X6

🚀 JavaScript diagramming library that uses SVG and HTML for rendering.
https://x6.antv.antgroup.com
MIT License
5.72k stars 1.7k forks source link

maybe bug? use with React 18 and @antv/x6-react-components menubar #3143

Closed JSchmidt63 closed 1 year ago

JSchmidt63 commented 1 year ago

Describe the bug

  1. click at the menubar 2.I see no dropped menus (menuitems). no action not all, I mean the context is not updates, is think context "active" is always on "false"?

example from https://x6.antv.vision/en/docs/api/ui/menubar and I updated to React 18.2 and @antv/x6-react-components menubar 2.0.4

Your Example Website or App

https://codesandbox.io/s/6x-react-component-menubar-2-2z49fc?file=/src/app.tsx

Steps to Reproduce the Bug or Issue

  1. click at the menubar
  2. i see none dropped menuitems (menu). no action not all look at React DecTools: children [, , ,…]

value {activeMenubar: , menubarActived: false, prefixCls:…} activeMenubar menubarActived false prefixCls "x6-menubar"

Expected behavior

  1. click the menubar
  2. show the menus (menuitems), file, edit, view, help and so

Screenshots or Videos

No response

Platform

Additional context

No response

x6-bot[bot] commented 1 year ago

👋 @JSchmidt63

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.

NewByVector commented 1 year ago

/cib

x6-bot[bot] commented 1 year ago

@JSchmidt63

Branch fix/issue-3143 was created for this issue. We will investigate into the matter and get back to you as soon as possible.

感谢反馈问题或提供改进建议,我们创建了 fix/issue-3143 分支来处理这个问题,你可以继续跟进后续的解决方案。

x6-bot[bot] commented 9 months ago

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.