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
Describe the bug
Whenever I use the function selectUserById of the people picker component, the dropdown to pick a user opens up.
To Reproduce
Steps to reproduce the behavior:
Create the people picker component. ie:
<mgt-people-picker ngDefaultControl name="people" id="MY_TEST_ID"> </mgt-people-picker>
2. Call the selectUserById function:
(document.getElementById('MY_TEST_ID') as any).selectUsersById(['977c3cbe-e47e-xxxx-b92c-0739ad67ebbe']);
3. The dropdown of the people picker opens, because the focus is caught.
Expected behavior
The focus of the element should not be caught automatically just because selectUsersById is called. Usually a programmatical selection does not need additional user action.
Environment
Browser Edge latest version
Framework Angular as custom element
Additional context
I am using Angular and use the people picker as a custom element.
The text was updated successfully, but these errors were encountered:
Just figured out that this does not happen in older versions. For example in 2.6.2 everything works fine. So this is a bug of the current version 4.2.1
Describe the bug
Whenever I use the function selectUserById of the people picker component, the dropdown to pick a user opens up.
To Reproduce
Steps to reproduce the behavior:
<mgt-people-picker ngDefaultControl name="people" id="MY_TEST_ID"> </mgt-people-picker>
2. Call the selectUserById function:
(document.getElementById('MY_TEST_ID') as any).selectUsersById(['977c3cbe-e47e-xxxx-b92c-0739ad67ebbe']);
3. The dropdown of the people picker opens, because the focus is caught.
Expected behavior
The focus of the element should not be caught automatically just because selectUsersById is called. Usually a programmatical selection does not need additional user action.
Environment
Additional context
I am using Angular and use the people picker as a custom element.
The text was updated successfully, but these errors were encountered: