Skip to content

Commit 0bc43f0

Browse files
committed
backspace re-adds removed selected people to list, also handles infinite loading spinner
1 parent fda93af commit 0bc43f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,7 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
871871
this.userInput = '';
872872
// remove last person in selected list
873873
this.selectedPeople = this.selectedPeople.splice(0, this.selectedPeople.length - 1);
874+
this.loadState();
874875
// reset flyout position
875876
this.hideFlyout();
876877
this.showFlyout();
@@ -879,7 +880,9 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
879880
return;
880881
}
881882

882-
this.handleUserSearch(input);
883+
if (input.value) {
884+
this.handleUserSearch(input);
885+
}
883886
}
884887

885888
private onPersonClick(person: IDynamicPerson): void {

0 commit comments

Comments
 (0)