vkbansal/react-contextmenu

SubMenu title type

Closed this issue · 3 comments

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>}>

Is this an issue with TS definitions?

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.