sp-dev-fx-controls-react
sp-dev-fx-controls-react copied to clipboard
ListItemPicker - How to get 'defaultSelectedItems' to set value
Category
[ ] Enhancement
[ ] Bug
[X] Question
Version
Please specify what version of the library you are using: [ 3.15.0 ]
If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.
Expected / Desired Behavior / Question
I have a ListItemPicker that I render in a DynamicForm using the 'fieldOverrides' and when setting the 'defaultSelectedItems' in the ListItemPicker , the default selection shows up fine, but when I click 'Save' the value is not sent as part of the request, only values for other fields are passed in the request. How do I get it to set the default value so it can be included in the request?
Observed Behavior
When setting the 'defaultSelectedItems', I have to remove the selected item and the select it again to have it fire the 'onChanged' and then it updates the value, otherwise, if I just leave the default selection, then it doesn't include it in the request.
Steps to Reproduce
N/A
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Thank you for submitting your first issue to this project.