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] 点击MenuItem区域外的地方,会导致SubMenu收起来 #3237

Closed
kajweb opened this issue Nov 28, 2024 · 3 comments
Closed

[Menu] 点击MenuItem区域外的地方,会导致SubMenu收起来 #3237

kajweb opened this issue Nov 28, 2024 · 3 comments
Labels
to be published fixed, not be published

Comments

@kajweb
Copy link

kajweb commented Nov 28, 2024

tdesign-react 版本

1.10.0

重现链接

https://stackblitz.com/edit/tdesign-241128-menu?file=src%2Fdemo.tsx

重现步骤

image

点击MenuItem,会导致SubMenu收起来,必现

期望结果

实际结果

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

希望能为低版本提供规避方案(如提供全局css)

Copy link
Contributor

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

@kajweb kajweb changed the title [Menu] 描述问题的标题 [Menu] 点击MenuItem,会导致SubMenu收起来 Nov 28, 2024
@kajweb kajweb changed the title [Menu] 点击MenuItem,会导致SubMenu收起来 [Menu] 点击MenuItem区域外的地方,会导致SubMenu收起来 Nov 29, 2024
@huangchen1031
Copy link
Collaborator

onClick写在了li标签上,需要改到title的div上才能解决

@uyarn
Copy link
Collaborator

uyarn commented Dec 19, 2024

fixed 1.10.2

@uyarn uyarn closed this as completed Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

3 participants