Command bar does not respect onRender of it's items props
Bug Report
- Package version(s): (fill this out)
- Browser and OS versions: (fill this out if relevant)
Priorities and help requested (not applicable if asking question):
Are you willing to submit a PR to fix? (Yes, No)
Requested priority: (Blocking, High, Normal, Low)
Products/sites affected: (if applicable)
Describe the issue:
if I specify on render in an IContextualMenuItem as a prop to command bar, command bar just tries to render the item as a button. Does not allow me to use the command bar for any other special controls like Toggle for example. Please fix!!!!!
Actual behavior:
Shows a button component no matter what
Expected behavior:
Would respect onRender, all you need to do here is check if the item has onRender function if so return that result
If applicable, please provide a codepen repro:
@micahgodbolt actually is working on doing exactly this. It is important to us to solve this in a more generalized way.
This has been implemented