not-bulma 1.0.91 → 1.0.92

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": "not-bulma",
3
- "version": "1.0.91",
3
+ "version": "1.0.92",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -1,4 +1,5 @@
1
1
  <script>
2
+ import UICommon from "../common";
2
3
  import ErrorsList from "../various/ui.errors.list.svelte";
3
4
  import { createEventDispatcher } from "svelte";
4
5
  let dispatch = createEventDispatcher();
@@ -24,6 +24,8 @@
24
24
  export let formErrors = false;
25
25
  export let formLevelError = false;
26
26
 
27
+ let selectedVariants = [];
28
+
27
29
  $: iconClasses = (icon ? " has-icons-left " : "") + " has-icons-right ";
28
30
  $: allErrors = [].concat(
29
31
  errors ? errors : [],
@@ -36,9 +38,12 @@
36
38
  ? UICommon.CLASS_OK
37
39
  : UICommon.CLASS_ERR;
38
40
  $: multipleClass = multiple ? " is-multiple " : "";
39
- $: selectedVariants = Array.isArray(variants)
40
- ? variants.filter(filterSelectedVariants)
41
- : [];
41
+ $: {
42
+ value;
43
+ selectedVariants = Array.isArray(variants)
44
+ ? variants.filter(filterSelectedVariants)
45
+ : [];
46
+ }
42
47
 
43
48
  function filterSelectedVariants(variant) {
44
49
  if (Array.isArray(value) && multiple) {