Skip to content

Commit d7be81c

Browse files
authored
Set the input text to empty only on multiple mode (#1400)
1 parent ad6b37a commit d7be81c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,9 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
10141014

10151015
private clearInput() {
10161016
this.clearHighlighted();
1017-
this.input.value = '';
1017+
if (this.selectionMode !== 'single') {
1018+
this.input.value = '';
1019+
}
10181020
this.userInput = '';
10191021
}
10201022

0 commit comments

Comments
 (0)