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.Item> does not render the name properly. #3934

Closed
cHAuHaNz opened this issue Apr 12, 2020 · 3 comments
Closed

<Menu.Item> does not render the name properly. #3934

cHAuHaNz opened this issue Apr 12, 2020 · 3 comments

Comments

@cHAuHaNz
Copy link

Bug Report

Steps

Make a new menu and put some alphanumerical or special characters in the name prop.
It adds black spaces around the number converting next character into UPPERCASE and also omits the special characters and makes the character very next to the symbol in UPPERCASE.

Example:-

<Menu>
  <Menu.Item name="Xpl0iter's Name"/>
</Menu>

Expected Result

image
image

Actual Result

image
image

Version

0.88.2

Testcase

https://codesandbox.io/s/react-semantic-ui-bug-evp20

@welcome
Copy link

welcome bot commented Apr 12, 2020

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.

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.

@theBstar
Copy link

This issue is raising due to .startCase from lodash . It is being used in the component. Here is the exact place in the code. .

@layershifter
Copy link
Member

name is unique identifier on item, to provide content please content or children:

    <Menu>
      <Menu.Item content="Ex4mp1e 1" />
      <Menu.Item>Som3 c#4arcter</Menu.Item>
    </Menu>

#1340 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants