@avakhula/ui 0.0.41 → 0.0.42

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": "@avakhula/ui",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -381,8 +381,20 @@ export default {
381
381
  modelValue(value) {
382
382
  this.selected = [];
383
383
  this.val = value;
384
- console.log('modelValue changet')
385
- this.setPreparedValues();
384
+ if (
385
+ this.watchClearValue &&
386
+ (!value || (Array.isArray(value) && !value.length))
387
+ ) {
388
+ this.setPreparedValues(this.actualOptions).then(() => {
389
+ const values = Object.keys(this.selected);
390
+ this.$globalEvents.$emit("select-" + this.filterId + ":update", {
391
+ values,
392
+ filter: this.filterId,
393
+ });
394
+ });
395
+ }
396
+
397
+ console.log('modelValue changet', this.actualOptions)
386
398
  },
387
399
  val(value) {
388
400
  if (