You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I start typing, the filter works as expected and the picker only displays names that both contain the letters and belong to the group.
However, if I just click on the people picker, it displays 6 names and I can pick any of them even if the person doesn't belong to the group.
To Reproduce
Steps to reproduce the behavior:
Import the people picker component import { PeoplePicker } from '@microsoft/mgt-react'
Add it to the React solution, incuding a groupId prop
Click on the people picker box
See 6 people listed, not necessarily from the group.
Expected behavior
I would expect the choices to be restricted to only people in the group. Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
SPFx React
The text was updated successfully, but these errors were encountered:
Hello PathToSharePoint, thank you for opening an issue with us!
I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌
Describe the bug
I am using the MGT people picker in combination with the group filter.
component: PeoplePicker, props: { className: mgtTheme, groupId: this.properties.mgtGroupPicker, selectionMode: "single", type: PersonType.person, defaultSelectedUserIds: [this.properties.mgtPeoplePicker], selectionChanged: (e: any) => { let users = []; console.log(e.detail); e.detail.forEach(dtl => users.push(dtl.userPrincipalName)); this.updateWebPartProperty("mgtPeoplePicker", users[0]); } }
For groupId I use the GUID of the group.
If I start typing, the filter works as expected and the picker only displays names that both contain the letters and belong to the group.
However, if I just click on the people picker, it displays 6 names and I can pick any of them even if the person doesn't belong to the group.
To Reproduce
Steps to reproduce the behavior:
import { PeoplePicker } from '@microsoft/mgt-react'
Expected behavior
I would expect the choices to be restricted to only people in the group.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: