microsoftgraph / microsoft-graph-toolkit

Authentication Providers and UI components for Microsoft Graph 🦒
https://docs.microsoft.com/graph/toolkit/overview
Other
922 stars 285 forks source link

[BUG] [mgt-people-picker] Odd loading UX when searching and selecting AD security group #3067

Open s-KaiNet opened 4 months ago

s-KaiNet commented 4 months ago

Describe the bug When you use mgt-people-picker in your organization, you might see odd UX when searching for AD security groups.

To Reproduce Steps to reproduce the behavior:

  1. Create a regular <mgt-people-picker>. You could use mgt.dev environment, but you should be logged into the real tenant.
  2. Try to search for exact or partial name of an AD security group. It's important, that the results contains only AD security group(s) and not users.
  3. Upon loading the results, only the white circle will be visible. After a while, a group component will appear.
  4. Select a group from results list - you will see a close button and only after group info is loaded, you will be able to see the group name in the component. (see attached video)

Expected behavior Upon searching, a loading circle should be visible, the same as searching for a user.

Screenshots

https://github.com/microsoftgraph/microsoft-graph-toolkit/assets/10658276/5d322776-2e35-447d-8ba8-88a761c77898

Environment (please complete the following information):

gavinbarron commented 4 months ago

Wow, that's an interesting case, thanks for raising this @s-KaiNet