fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Command bar does not respect onRender of it's items props

Open petdun2519 opened this issue 9 years ago • 2 comments

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:

petdun2519 avatar Mar 27 '17 18:03 petdun2519

@micahgodbolt actually is working on doing exactly this. It is important to us to solve this in a more generalized way.

dzearing avatar Mar 27 '17 19:03 dzearing

This has been implemented

erichdev avatar Oct 12 '17 18:10 erichdev