Forum Discussion
Cardinal_Night
Nov 19, 2019Brass Contributor
How to set the default for a pnp.sp people picker
I want a pnp.sp people picker to auto populate with the logged in user. Here's the render and the people picker: <PeoplePicker
context={this.props.context}
personSelectionLimit={1}
grou...
Nov 19, 2019
Hi Cardinal_Night ,
I think it is a timing issue, try to call your method inside componentDidMount
public componentDidMount() {
this._getUser();
}
Cheers,
Federico