@enso-ui/select 3.0.15 → 3.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enso-ui/select",
3
- "version": "3.0.15",
3
+ "version": "3.0.16",
4
4
  "description": "Select",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -262,7 +262,9 @@ export default {
262
262
  const value = JSON.parse(JSON.stringify(this.modelValue));
263
263
 
264
264
  const index = value
265
- .findIndex(val => val === deselect[this.trackBy]);
265
+ .findIndex(val => this.objects
266
+ ? val[this.trackBy] === deselect[this.trackBy]
267
+ : val === deselect[this.trackBy]);
266
268
 
267
269
  value.splice(index, 1);
268
270
  this.update(value);