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

fix(Menu): I type "&" to name of Menu.Item but it is not show #1765

Closed
ChampyW opened this issue Jun 13, 2017 · 2 comments
Closed

fix(Menu): I type "&" to name of Menu.Item but it is not show #1765

ChampyW opened this issue Jun 13, 2017 · 2 comments

Comments

@ChampyW
Copy link

ChampyW commented Jun 13, 2017

Steps to Reproduce

  1. I type "&" to attribute name e.g. name={'Black & White'}.

Expected
Text in Menu item must show "&".

Result
Text in Menu item is not show "&"

Testcase
If the docs show the issue, use: https://react.semantic-ui.com/collections/menu#menu-example-colored
Otherwise, fork this to get started: http://codepen.io/levithomason/pen/ZpBaJX

@ChampyW ChampyW closed this as completed Jun 13, 2017
@wangyueming
Copy link

Using content={'Black & White'} rather than name={'Black & White'} works, tested on version 0.71.0.

@levithomason
Copy link
Member

Indeed. The if no content is provided then we _.startCase the name and use that for the content. This method removes special characters.

See #1340 (comment).

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