@kws3/ui 2.0.3 → 2.0.4

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/CHANGELOG.mdx CHANGED
@@ -1,3 +1,6 @@
1
+ ## 2.0.4
2
+ - `ToggleButtons` - set the value if not disabled and not the same value is set
3
+
1
4
  ## 2.0.3
2
5
  - Sveltkit compatibility fix ('window' not defined)
3
6
 
@@ -141,10 +141,12 @@ This property can be bound to, to fetch the current value, Default: `null`
141
141
  export { klass as class };
142
142
 
143
143
  function setValue(v) {
144
- value = v;
145
- /**
146
- * Toggle button change event
147
- */
148
- fire("change");
144
+ if (!disabled && value !== v) {
145
+ value = v;
146
+ /**
147
+ * Toggle button change event
148
+ */
149
+ fire("change");
150
+ }
149
151
  }
150
152
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kws3/ui",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "UI components for use with Svelte v3 applications.",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -32,5 +32,5 @@
32
32
  "text-mask-core": "^5.1.2",
33
33
  "tippy.js": "^6.3.1"
34
34
  },
35
- "gitHead": "25bba9ec00504040f662c73b524bb719e62c3e6e"
35
+ "gitHead": "499097fc9ed767630977388f4502c9a9e119f886"
36
36
  }