@enso-ui/select 3.0.15 → 3.0.18

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.18",
4
4
  "description": "Select",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,6 +1,5 @@
1
1
  <template>
2
- <vue-select
3
- :http="http"
2
+ <vue-select :http="http"
4
3
  :i18n="i18n"
5
4
  :error-handler="errorHandler"
6
5
  :source="source ? route(source) : null"
@@ -186,7 +186,9 @@ export default {
186
186
  },
187
187
  options: {
188
188
  handler(options) {
189
- this.optionList = options;
189
+ if (!this.serverSide) {
190
+ this.optionList = options;
191
+ }
190
192
  },
191
193
  deep: true,
192
194
  },
@@ -262,7 +264,9 @@ export default {
262
264
  const value = JSON.parse(JSON.stringify(this.modelValue));
263
265
 
264
266
  const index = value
265
- .findIndex(val => val === deselect[this.trackBy]);
267
+ .findIndex(val => this.objects
268
+ ? val[this.trackBy] === deselect[this.trackBy]
269
+ : val === deselect[this.trackBy]);
266
270
 
267
271
  value.splice(index, 1);
268
272
  this.update(value);