fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

TagPicker: Add prop for selected items

Open nikhilexe opened this issue 9 years ago • 2 comments

https://fabricreact.azurewebsites.net/fabric-react/master/#/examples/PeoplePicker#Implementation

image

Currently tag picker takes defaultSelectedItems but it should also take selectedItems which we can pass. We have one scenario where we have couple of rows of tag picker and we can delete as well.

When we delete one of the row, then I see that TagPicker is not getting refreshed and showing stale data. For now to workaround the issue we are explicitly passing key so that all Tag component instances get render on delete.

nikhilexe avatar Mar 22 '17 12:03 nikhilexe

@nikhilexe I changed the BasePicker to help me in my project see #1282

panigrah avatar Mar 27 '17 17:03 panigrah

This has been implemented about 4 months ago in BasePicker: Make it able to be a controlled component (#2319). Tis issue can be closed.

ohritz avatar Dec 08 '17 13:12 ohritz