@tak-ps/vue-tabler 2.2.6 → 2.2.8

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.md CHANGED
@@ -10,6 +10,14 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v2.2.8
14
+
15
+ - :bug: Toggle: Set initial value
16
+
17
+ ### v2.2.7
18
+
19
+ - :bug: Toggle: Should expect boolean value for modelValue
20
+
13
21
  ### v2.2.6
14
22
 
15
23
  - :tada: Bump GH Actions
@@ -14,8 +14,8 @@ export default {
14
14
  name: 'TablerToggle',
15
15
  props: {
16
16
  modelValue: {
17
- type: String,
18
- required: ''
17
+ type: Boolean,
18
+ required: true
19
19
  },
20
20
  disabled: {
21
21
  type: Boolean,
@@ -28,6 +28,9 @@ export default {
28
28
  current: this.modelValue
29
29
  }
30
30
  },
31
+ mounted: function() {
32
+ this.current = this.modelValue;
33
+ },
31
34
  watch: {
32
35
  current: function() {
33
36
  if (this.current === this.modelValue) return;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "2.2.6",
4
+ "version": "2.2.8",
5
5
  "main": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",