File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
packages/mgt-components/src/components/mgt-people-picker
stories/components/peoplePicker Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1048,6 +1048,10 @@ export class MgtPeoplePicker extends MgtTemplatedTaskComponent {
10481048 } ) ;
10491049
10501050 this . selectedPeople = [ ...this . defaultSelectedUsers , ...this . defaultSelectedGroups ] ;
1051+
1052+ if ( this . hasMaxSelections ) {
1053+ this . disableTextInput ( ) ;
1054+ }
10511055 this . requestUpdate ( ) ;
10521056 }
10531057
Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ export const singleSelectMode = () => html`
4141 < button aria-label ="close modal " id ="close-modal "> X</ button >
4242</ div >
4343
44+ < h2 > Single select with default selected user Ids</ h2 >
45+ < mgt-people-picker default-selected-user-ids ="e3d0513b-449e-4198-ba6f-bd97ae7cae85 " selection-mode ="single "> </ mgt-people-picker >
46+
47+ < h2 > Single select with default selected group Ids</ h2 >
48+ < mgt-people-picker default-selected-group-ids ="94cb7dd0-cb3b-49e0-ad15-4efeb3c7d3e9 " selection-mode ="single "> </ mgt-people-picker >
49+
4450< style >
4551# modal-content {
4652 height : 200px ;
You can’t perform that action at this time.
0 commit comments