I have a modern form.
Due to the limitation of the number of lookup columns in SharePoint list, the column is a text field.
The saved value is a string formatted as "selectedoption1,selectedoption2".
I customized the data card by adding a combo box to provide the users with a list to choose from instead of a free input text.
When the user selects an item in the gallery, a collection of the selected options is created using a Split and ForAll function.
The data source for the combo box is a named formula that returns a table with {Id:Number, Value:Text}.
//Collect multi selection fields default values
ClearCollect(_splitfacilitiessupport,Split(ThisItem.FacilitiesSupport,","));
ForAll(_splitfacilitiessupport,
Collect(_selectedserversupportfacilities,LookUp(f_supportorganizations,Value=_splitfacilitiessupport[@Value])))
)
The combo box DefaultSelectedItems is set to _selectedserversupportfacilities
Items: f_supportorganizations
The collection contains the correct records:

The Value being the text saved in the text column.
This works fine. I used to do this often with classic combo box.
With the modern combo box however, the values are showing as they should,

but as soon as I click the arrow to display the options,
1. The values disappear from the combo box 2. The default values do not show as selected in the option list | 
|
| 3. The selected options are repeated at the bottom of the list and show as selected there. |  |
Can anyone explain why the selected options are added to the bottom of the items list and not showed as selected.