Closed mtinnes closed 6 years ago
Same bug for me. @mtinnes Did you find any solution? Thank you.
I just mapped my model to a string based id. Something like this:
users.map(o => {
return { id: ''+o.id, fullName: o.fullName, username: o.username };
});
@mtinnes Thanks.
Should be fixed with 1.9.8
PLEASE MAKE SURE THAT:
I'm submitting a ... (check one with "x")
Current behavior
The control breaks when identifyBy is assigned to a numeric field withing the model. We have a model where 'id' has a numberic value. When selecting a new value from autocomplete the control breaks with the following error:
Expected behavior
The control should continue to allow adding new tags.
Minimal reproduction of the problem with instructions (if applicable)
Using the following HTML
users is an array with the following model:
[{ id: 123, fullName: 'Test user', username: 'test' }]
What do you use to build your app?. Please specify the version
angular-cli
Angular version:
6.1.3
ngx-chips version:
1.9.7
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Chrome 68.0.3440.106