ng-select icon indicating copy to clipboard operation
ng-select copied to clipboard

Allow any type

Open CWSpear opened this issue 7 years ago • 0 comments

Is there a technical reason why only strings are allowed? If I passing in options where the value is a complex object, it works fine. The only issue is if I try to set the value, the code throws an error saying only arrays or strings are allowed.

If you circumvent that check with the code in this PR, then everything works when I use any type for the value.

I think the only thing to consider is that the options need to be unique, which you could add a check for it. But mostly I wanted to open this PR to ask why the limitation on value type to only string.

CWSpear avatar Mar 09 '18 18:03 CWSpear