Closed sambilfinger closed 1 year ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
You need to pass the Id as well from what I can tell? And also need {} around the array, maybe the docs need updating?
defaultSelectedItems={[
{
Title: "Adobe Acrobat PDF Editor",
Id: 1,
},
]}
Category
[ ] Enhancement
[ ] Bug
[x] Question
Version
Please specify what version of the library you are using: [3.12]
Question
I am trying to pass an object to the defaultSelectedItems of the ComboBoxListItemPicker but I am getting the error that ts cannot find the name of my column that I'm referencing. Giving me the error on the SoftwareFull part - cannot find name. Could someone give an example of a working bit of code?
I'm not really sure if I need to make an interface for the column or I have the wrong syntax etc.
Docs -> https://pnp.github.io/sp-dev-fx-controls-react/controls/ComboBoxListItemPicker/#implementation
Thanks!