Open xyrintech opened 6 years ago
Hi. Try that fork: https://github.com/optimistex/ng2-select-ex It seems that the issue was solved in the fork.
I have tried using this but I am getting an issue with this package. I am getting an error for no provider for Dom No provider for DomSanitizer!
Getting error when using ng2-select inside a formGroupName
TypeError: selectedItems.map is not a function at SelectComponent.set [as active] (select.js:83) at SelectComponent.writeValue (select.js:228) at eval (forms.js:2345) at eval (forms.js:3916) at Array.forEach ()
at FormControl.setValue (forms.js:3916)
at FormControl.patchValue (forms.js:3949)
at eval (forms.js:4548)
at Array.forEach ()
at FormGroup.patchValue (forms.js:4546)
Code:
Removing the formGroupName makes the code to work fine.