Open Planet910 opened 7 years ago
I have the same problem in my project.
Me too
Copying both the label and the id into the selected model appears to be the default behavior in the new versions of 2.0 beta.
If you are using version 1.x I was able to successfully force this behavior by setting externalIdProp to an empty string (aka { externalIdProp : '' } ) in extra-settings.
In the example in the doc when you select an item from the dropdown the selected-model array is filled with the corresponding object inside the options array but when I use it in the selected-model array is inserted an object with only the id property. I need the full object (also with the label property) to be inserted in the selected-model, is there a way to do it?
Selected Model:
[{"id":"AL"},{"id":"AK"}]
options: