@pocketprep/ui-kit 3.0.14 → 3.0.15

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.
@@ -55,8 +55,8 @@ export default class Calendar extends Vue {
55
55
  @Prop({ default: false }) isDarkMode!: boolean
56
56
 
57
57
  calendar: null | Litepicker = null
58
- calendarInput = this.modelValue
59
- dateString = this.modelValue ? this.modelValue.toLocaleDateString() : ''
58
+ calendarInput: Date | null = null
59
+ dateString = ''
60
60
  hover = false
61
61
  focus = false
62
62
  afterCalendarTab = -1
@@ -66,6 +66,8 @@ export default class Calendar extends Vue {
66
66
  }
67
67
 
68
68
  mounted () {
69
+ this.calendarInput = this.modelValue
70
+ this.dateString = this.modelValue ? this.modelValue.toLocaleDateString() : ''
69
71
  this.calendar = new Litepicker({
70
72
  element: this.$refs.calendar as HTMLElement,
71
73
  plugins: [ 'keyboardnav' ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.0.14",
3
+ "version": "3.0.15",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {