Skip to content

Commit be7caad

Browse files
committed
secondary loading issue
1 parent e042309 commit be7caad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/mgt-people-picker/mgt-people-picker.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
354354
<div class="people-selected-list">
355355
${selectedPeopleTemplate} ${flyoutTemplate}
356356
</div>
357-
<div class="people-picker-input"></div>
358357
</div>
359358
`;
360359
}
@@ -902,6 +901,7 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
902901
*/
903902
private handleUserSearch(input: HTMLInputElement) {
904903
if (!this._debouncedSearch) {
904+
this._showLoading = true;
905905
this._debouncedSearch = debounce(async () => {
906906
// Wait a few milliseconds before showing the flyout.
907907
// This helps prevent loading state flickering while the user is actively changing the query.
@@ -923,7 +923,6 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
923923
}
924924

925925
if (this.userInput !== input.value) {
926-
this._showLoading = true;
927926
this.userInput = input.value;
928927
this._debouncedSearch();
929928
}

0 commit comments

Comments
 (0)