@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
package/src/bulma/EnsoSelect.vue
CHANGED
|
@@ -186,7 +186,9 @@ export default {
|
|
|
186
186
|
},
|
|
187
187
|
options: {
|
|
188
188
|
handler(options) {
|
|
189
|
-
this.
|
|
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 =>
|
|
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);
|