@enso-ui/select 2.1.9 → 2.1.10

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": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "Select",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -242,7 +242,9 @@ export default {
242
242
  const value = JSON.parse(JSON.stringify(this.value));
243
243
 
244
244
  const index = value
245
- .findIndex((val) => val === deselect[this.trackBy]);
245
+ .findIndex(val => this.objects
246
+ ? val[this.trackBy] === deselect[this.trackBy]
247
+ : val === deselect[this.trackBy]);
246
248
 
247
249
  value.splice(index, 1);
248
250
  this.update(value);