SubMenu title type
Closed this issue · 3 comments
Chagui- commented
Version
2.11.0
Test Case
Examples have submenu title accepting a string, but the type is declared as ReactElement, so it gives an error and doesn't compile.
Steps to reproduce
Examples use title as this:
<SubMenu title="this is not working">
Expected Behavior
<SubMenu title="this should work">
Actual Behavior
<SubMenu title={<a>this is how its working right now</a>}>
vkbansal commented
Is this an issue with TS definitions?
Chagui- commented
Yes, this is for typescript.
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.