-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
ListItem link? #1823
Comments
I'm having the opposite problem. I would like it prevent it from rendering as a link. I'm getting a nested link error when using an IconMenu with MenuItems inside of a ListItem. Its working in the docs though, so maybe I'm doing something wrong. ListItem > EnhancedButton > a > ... > IconMenu > ReactTransitionGroup > Menu > MenuItem > ListItem > EnhancedButton > a. Is there any way to prevent this? I know it's a different problem than @sys13, but it might have the same solution. |
Use the see: <MenuItem
linkButton
containerElement={<Link to="/profile" />}
primaryText="Profile"
leftIcon={
<FontIcon className="material-icons">people</FontIcon>
} /> or if you're not using react-router, simply use <MenuItem linkButton href="/profile" primaryText="Profile" /> |
This was fixed in #2708 |
How do I make a ListItem into a link?
I tried wrapping it with an achor tag but that didn't work. I didn't see a property in http://material-ui.com/#/components/lists. I would prefer to avoid using event handlers so that the hover shows a URL.
The text was updated successfully, but these errors were encountered: