Skip to content

PeoplePicker: defaultSelectedUsers issue resolving groups with similar names. #2102

Open
c-eiser13 wants to merge 6 commits intopnp:devfrom
c-eiser13:2101-peoplePickerDefaultUsersIssue
Open

PeoplePicker: defaultSelectedUsers issue resolving groups with similar names. #2102
c-eiser13 wants to merge 6 commits intopnp:devfrom
c-eiser13:2101-peoplePickerDefaultUsersIssue

Conversation

@c-eiser13
Copy link
Copy Markdown
Contributor

Q A
Bug fix? [ X]
New feature? [ ]
New sample? [ ]
Related issues? fixes #2101

What's in this Pull Request?

This PR increases the results returned from the searchPersonByEmailOrLogin function that is called by the defaultSelectedUsers prop in the People Picker control. This function was previously hard-coded to return 1 result, which works well when using an email address or login to perform the search, but when a group is used and searched by name, there are instances where groups with a similar name are resolved incorrectly. Increasing the number of results, then filtering the array with the actual query value produces the correct resolved groups. See #2101 for more information. If any adjustments should be made, please let me know and I would be happy to do so!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant