Skip to content

Commit 13cf46d

Browse files
Merge branch 'master' into bethpan/more-channelpicker-fixes
2 parents 1dcbb2c + c6c2fb5 commit 13cf46d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,7 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
867867
this.userInput = '';
868868
// remove last person in selected list
869869
this.selectedPeople = this.selectedPeople.splice(0, this.selectedPeople.length - 1);
870+
this.loadState();
870871
// reset flyout position
871872
this.hideFlyout();
872873
this.showFlyout();
@@ -892,7 +893,6 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
892893
* @param input - input text
893894
*/
894895
private handleUserSearch(input: HTMLInputElement) {
895-
this._showLoading = true;
896896
if (!this._debouncedSearch) {
897897
this._debouncedSearch = debounce(async () => {
898898
// Wait a few milliseconds before showing the flyout.
@@ -915,6 +915,7 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
915915
}
916916

917917
if (this.userInput !== input.value) {
918+
this._showLoading = true;
918919
this.userInput = input.value;
919920
this._debouncedSearch();
920921
}

0 commit comments

Comments
 (0)