fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Text not showing when peopleSuggestions are changed

Open HannesDel opened this issue 9 years ago • 3 comments

Bug Report

  • Package version(s): 2.22.1
  • Browser and OS versions: All

Describe the issue:

I have a component that fetches (with redux) the users from a server when the component mounted. The defaultSelected is then picked out of this array of PersonaProps.

But, when the data is loaded, the default selected values are shown as empty boxes in the peoplePicker.

HannesDel avatar Jun 15 '17 08:06 HannesDel

Do your results/default selected have the primaryText set? Only time I've seen an empty box was when the object did not have the required keys set.

I'm working on a project that has a people picker (pulling from SP) and just verified it's working correctly on the latest version of fabric react.

Here is an example of a default result that is working: public managementServicesAdministrator: IPersonaProps[] = [ { imageInitials: 'FL', primaryText: 'Last, First', secondaryText: '[email protected]', tertiaryText: 'In a meeting', optionalText: 'Available at 4:00pm', presence: PersonaPresence.online } ];

jcoleman-pcprofessional avatar Jun 15 '17 13:06 jcoleman-pcprofessional

@HannesDel if you're still facing the problem, would it be possible to create a Codepen to demonstrate the problem?

atneik avatar Jun 22 '17 17:06 atneik

Closing because there hasn't been any response from author. Please reopen if this issue still occurs.

erichdev avatar Oct 17 '17 18:10 erichdev