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
not compatible with react-router Link #2243
Comments
@jma7889 Quite interesting question, but for now I can't see a bug here. Can we discuss on discordapp (Reactiflux/#material-ui) or on gitter? |
@frankf-cgn did see some previous discussion regarding this. About to try if any of those works. Yes, we can discuss on discord app. It's not a bug, more of a feature request. -- update 1 |
@jma7889 Otherwise you could just use Navigation mixin:
|
Thanks @jma7889. Would be nice if documented. |
Should be fixed by #2708. |
@jma7889 If the right-icon-button or some other buttons in a listitem this way, for example: <ListItem
rightIconButton={<IconButton />}
primaryText='some text'
containerElement={<Link to={{pathname:"/"}} /> These buttons didn't work well. |
I think, you made a mistake :
|
containerElement with react-router Link works fine with MenuItem but not in ListItem. |
@Paelsis This. Wondering if it's going to be fixed. |
containerElement with react-router Link for TableRow would be helpful as well. |
Are there any updates on this? Not even |
@Iambecomeroot This is how it worked for me.
|
@zeeshan-za-ahmad Working for me. Thanks. |
I tried to use Link with Menu Item and List Item. Both don't work. As Link is the main navigation for react-router, if it doesn't work, then how can I make -ui work with react-router?
None of the below worked
Then I wrap Link with ListItem, not working neither.
Try the same thing with MenuItem, both not working.
-- update 1
It is working now with following syntax. Case can be closed. I wish this is documented.
<MenuItem linkButton={true} containerElement={<Link to="/foo" />} primaryText="Foo" />
The text was updated successfully, but these errors were encountered: