I am rendering some Dropdown elements inside two of the columns in the DetailsList element. The items of the DetailsList are dependant on an previous selection which updates the items displayed in the list.

The options on the Dropdown are filled from a previous REST call to a sharepoint list and the selectedKey is set to a value received from a sharepoint list while the Dropdown> and

I am struggling to see how I can update the selected value inside of the onChange on the Dropdown considering that i don't know how many of these Dropdown elements I am going to have in advance so I can't think of anyway to be able to use setState.

This is my first time using Spfx and office-ui-fabric-react so there is the possibility that I am trying to use this in the wrong way or have a basic misunderstanding somewhere.

I can provide any more information which is required.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.