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

[Menu 导航菜单] expandType 影响 MenuItem 点击事件 #2349

Closed
DevQiao opened this issue Jul 6, 2023 · 4 comments
Closed

[Menu 导航菜单] expandType 影响 MenuItem 点击事件 #2349

DevQiao opened this issue Jul 6, 2023 · 4 comments

Comments

@DevQiao
Copy link

DevQiao commented Jul 6, 2023

tdesign-react 版本

1.1.10

重现链接

https://codesandbox.io/s/tdesign-react-demo-forked-xmmpm3?file=/src/demo.jsx

重现步骤

  • 去除 HeadMenu 的 expandType="popup"
  • MenuItem 绑定的 onClick 失效了

期望结果

expandType 只影响布局不影响 MenuItem 点击事件绑定

实际结果

expandType 影响 MenuItem 点击事件绑定
不为 popup 时,onClick 失效了

框架版本

React 16.14

浏览器版本

No response

系统版本

No response

Node版本

14.21.3

补充说明

No response

@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2023

👋 @DevQiao,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@Ali-ovo
Copy link
Contributor

Ali-ovo commented Jul 12, 2023

根据你提供的 demo 链接来看,好像是能正常work的?

@DevQiao
Copy link
Author

DevQiao commented Jul 13, 2023

@Ali-ovo https://codesandbox.io/s/tdesign-react-demo-forked-wzm5gy?file=/src/demo.jsx
我添加解释,里面点击子菜单1,onClick 表现不一致啊

@HaixingOoO
Copy link
Collaborator

HaixingOoO commented Sep 28, 2023

@DevQiao Release 1.2.5,Closed。

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

3 participants