Describe the bug
When the valueField of the MultiSelect is set to point to a nested property value and the valuePrimitive property is true, then the user selects an item, the emitted value from the component is the whole object, not the specified valueField. This causes an "Expected values of primitive type" error to be thrown in the console:
Expected behavior
The emitted value from the MultiSelect should be of a primitive type (as specified in the valueField) and no error should be thrown.
Additional context
When a value is set programmatically for the MultiSelect and is of the correct primitive type, the unexpected behavior is not observed.
Example - https://stackblitz.com/edit/angular-fv9bym-4dbeyz
Describe the bug When the valueField of the MultiSelect is set to point to a nested property value and the valuePrimitive property is true, then the user selects an item, the emitted value from the component is the whole object, not the specified valueField. This causes an "Expected values of primitive type" error to be thrown in the console:
To Reproduce
Expected behavior The emitted value from the MultiSelect should be of a primitive type (as specified in the valueField) and no error should be thrown.
Additional context When a value is set programmatically for the MultiSelect and is of the correct primitive type, the unexpected behavior is not observed. Example - https://stackblitz.com/edit/angular-fv9bym-4dbeyz