Skip to content

Commit

Permalink
updated docs for PeoplePicker to reference onChange instead of select…
Browse files Browse the repository at this point in the history
…edItems
  • Loading branch information
AJIXuMuK committed Sep 30, 2020
1 parent eceb6f1 commit 759c6c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/documentation/docs/controls/PeoplePicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ import { PeoplePicker, PrincipalType } from "@pnp/spfx-controls-react/lib/People
showtooltip={true}
isRequired={true}
disabled={true}
selectedItems={this._getPeoplePickerItems}
onChange={this._getPeoplePickerItems}
showHiddenInUI={false}
principalTypes={[PrincipalType.User]}
resolveDelay={1000} />
```

- With the `selectedItems` property you can get the selected People in the Peoplepicker :
- With the `onChange` property you can get the selected People in the `PeoplePicker` :

```typescript
private _getPeoplePickerItems(items: any[]) {
Expand Down

0 comments on commit 759c6c3

Please sign in to comment.