You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When props are updated, this.state.selectedItems is erased evetn if it shoud not.
Observed Behavior
If a property the disabled is updated from true to false, all items are shown in the suggested list even the those from defaultSelectedItems.
Steps to Reproduce
Create the picker with default values and with the disabled property set to true. The update the property disabled to false.
Submission Guidelines
In the file ListItemPicker.tsx in the function UNSAFE_componentWillReceiveProps replace the first line let newSelectedItems: any[] | undefined; by let newSelectedItems = this.state.selectedItems;
The text was updated successfully, but these errors were encountered:
Category
[ ] Enhancement
[X] Bug
[ ] Question
Version
3.21.0
Expected / Desired Behavior / Question
When props are updated, this.state.selectedItems is erased evetn if it shoud not.
Observed Behavior
If a property the disabled is updated from true to false, all items are shown in the suggested list even the those from defaultSelectedItems.
Steps to Reproduce
Create the picker with default values and with the disabled property set to true. The update the property disabled to false.
Submission Guidelines
In the file ListItemPicker.tsx in the function UNSAFE_componentWillReceiveProps replace the first line
let newSelectedItems: any[] | undefined;
bylet newSelectedItems = this.state.selectedItems;
The text was updated successfully, but these errors were encountered: