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

MenuItem title stop working when it has children. #48850

Open
Lukiya opened this issue May 9, 2024 · 5 comments
Open

MenuItem title stop working when it has children. #48850

Lukiya opened this issue May 9, 2024 · 5 comments
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@Lukiya
Copy link

Lukiya commented May 9, 2024

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Create a MenuItem array, assign title property to all top level items, then some add children, some doesn't add children.

What is expected?

Menu item title should show a string when mouse hover.

What is actually happening?

It only shows when there's no children

Environment Info
antd 5.16.5
React 4.4.4
System Win11
Browser Edge & Chrome

https://codesandbox.io/p/sandbox/menu-item-title-6glrvk?file=%2Fsrc%2FApp.tsx

Above example will show details.

@coderz-w
Copy link
Contributor

我来看看😊

@coderz-w
Copy link
Contributor

Combining the document for review, it appears that this feature has not yet been implemented. When a "child" exists, what is actually rendered is not a "MenuItem" but a "SubMenu", and the "SubMenu" does not have a "title" attribute.
image

@Lukiya
Copy link
Author

Lukiya commented May 12, 2024

Title is very important for collapsed menu items.

@coderz-w
Copy link
Contributor

@li-jia-nan 哥,这个需要做不

@li-jia-nan
Copy link
Member

@li-jia-nan 哥,这个需要做不

感觉可以做,但是我拿不准,问问大佬 @zombieJ @MadCcc

@MadCcc MadCcc added 🐛 Bug Ant Design Team had proved that this is a bug. and removed unconfirmed labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

4 participants