[BUG] [mgt-people-picker] search is enabled even if a user is selected and mode is single
#3066
Labels
bug
Something isn't working
single
#3066
Describe the bug
When
default-selected-user-ids
is set andselection-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:
<mgt-people-picker>
component.default-selected-user-ids
to a single user id, setselection-mode="single"
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):
The text was updated successfully, but these errors were encountered: