Forum Discussion

Cardinal_Night's avatar
Cardinal_Night
Brass Contributor
Nov 15, 2019
Solved

How to blank a People Picker (PnP, spfx, react)

I have an spfx form on a SharePoint Online site collection which reads/writes data to an SP list. I have 3 people pickers which I've managed to submit (using a submit button) successfully to the list...
  • Joel Rodrigues's avatar
    Joel Rodrigues
    Nov 18, 2019

    Cardinal_Night 

     

    I think you should be evaluating the items object and not the state as you are using that function to set the state

    Have you tried something like:

     

    if(items !== null && items.length > 0){

Resources