From 440211bb330928ba071202eb82f168e22c6a1ceb Mon Sep 17 00:00:00 2001 From: Nickii Miaro Date: Tue, 3 Sep 2024 16:45:09 +0300 Subject: [PATCH] fix: remove picker focus when using selectUsersById (#3282) * remove picker focus when using selectUsersById * remove logging --- .../src/components/mgt-people-picker/mgt-people-picker.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/mgt-components/src/components/mgt-people-picker/mgt-people-picker.ts b/packages/mgt-components/src/components/mgt-people-picker/mgt-people-picker.ts index 2a0366c888..6749be8603 100644 --- a/packages/mgt-components/src/components/mgt-people-picker/mgt-people-picker.ts +++ b/packages/mgt-components/src/components/mgt-people-picker/mgt-people-picker.ts @@ -1269,7 +1269,9 @@ export class MgtPeoplePicker extends MgtTemplatedTaskComponent { this._foundPeople = []; this._arrowSelectionCount = -1; } - this.enableTextInput(); + if (this._isFocused) { + this.enableTextInput(); + } } }