Skip to content
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

[BUG] [mgt-people-picker] search is enabled even if a user is selected and mode is single #3066

Closed
s-KaiNet opened this issue Feb 22, 2024 · 1 comment · Fixed by #3119
Closed
Assignees
Labels
bug Something isn't working

Comments

@s-KaiNet
Copy link
Contributor

Describe the bug
When default-selected-user-ids is set and selection-mode="single", you are able to put a cursor in the control input and try to further filter, but the component shouldn't allow it.

To Reproduce
Steps to reproduce the behavior:

  1. Create a regular <mgt-people-picker> component.
  2. Set default-selected-user-ids to a single user id, set selection-mode="single"
  3. After the component is loaded, put a cursor next to the preselected user and try to type anything. You will be able to enter a text, but it should be prohibited, since maximum users already added.

Expected behavior
When selection mode is single and default users (or groups) are already set, you shouldn't be able to type anything in the control's input field.

Screenshots

2024-02-21_11-59-58.mp4

Additional info
It could be related to this comment - looks like the issue is fixed only for a situation, when user is selected manually from single-moded control, but not fixed when the use is preselected with default-selected-user-ids.

Environment (please complete the following information):

  • OS: any
  • Browser: edge, chrome
  • Framework: none
  • Context: any
  • Version: 4.0.1
  • Provider: any
@gavinbarron
Copy link
Member

Thanks for the high quality bug report @s-KaiNet
Looks like we failed to account for the default selection case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
3 participants