[Button] stripping href from containerElement returning a tag #5968
Labels
bug 🐛
Something doesn't work
component: button
This is the name of the generic UI component, not the React module!
Problem description
react-router
Link
elements do not support external links by default. There are comments in their library that show you how to handle externalizing these links by creating aHOC
to essentially check for the host, if it's external return ana
tag instead of the react-router link tag.The problem is in Material-UI (a most wonderful library may I add) when you use a containerElement attribute on a
MenuItem
or atab
IF that container element returns ana
tag, it strips out thehref
attribute. This is not the case onRaisedButton
.I would be happy to contribute and fix the issue myself, but I haven't been able to debug where this stripping of the href tag happens on
MenuItem
orTab
.IE:
Versions
The text was updated successfully, but these errors were encountered: