@pocketprep/ui-kit 3.1.3 → 3.1.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.
@@ -33,9 +33,9 @@ import { Component, Vue, Prop, Emit } from 'vue-facing-decorator'
33
33
  export default class SegmentControl extends Vue {
34
34
  @Prop({ default: 'Option 1' }) option1!: string
35
35
  @Prop({ default: 'Option 2' }) option2!: string
36
- @Prop({ default: 1 }) defaultOption!: string
36
+ @Prop({ default: 1 }) defaultOption!: number
37
37
 
38
- activeOption = this.defaultOption || 1
38
+ activeOption = 1
39
39
 
40
40
  @Emit('change')
41
41
  toggleOption () {
@@ -48,6 +48,10 @@ export default class SegmentControl extends Vue {
48
48
  this.activeOption = option
49
49
  return option
50
50
  }
51
+
52
+ created () {
53
+ this.activeOption = this.defaultOption
54
+ }
51
55
  }
52
56
  </script>
53
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {