-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
People picker selection mode single still selects multiple users #65
Comments
Hello Jcardif, 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 🙌 |
Thanks for the bug report @Jcardif, this is an underlying issue with the base The TokenizingTextBox was built inherently with multiple selection in it's core purpose, otherwise a drop-down using the The |
my application is used to select a user from Graph and assign a specific app role and the requirements are that only one user should be assigned at a time, the current picker selects multiple users unfortunately. Or is there another control for this purpose? |
@Jcardif we don't have a control that provides that functionality out of the box. We only have the multi-select scenario setup through TokenizingTextBox. You can look at the source we have here to get the call you need from the Graph and just use that to populate a normal |
Support for restricting the TokenizingTextBox to one token at a time is in PR in the WCT repo currently: CommunityToolkit/WindowsCommunityToolkit#4163 Once that gets figured out, the PeoplePicker control can then take advantage of that feature to resolve/support this scenario! 🚢 |
The feature has been added to the TokenizingTextBox in Windows Community Toolkit 🚀 The PeoplePicker will have the new |
Selection Mode not working as expected
I have set the picker on xaml as follows:
However, it allows for multiple selection of people when I run it.
Expected behavior
Only one user should be selected from the dropdown list
Screenshots
Environment
The text was updated successfully, but these errors were encountered: