In my mounted lifecycle event, I set both the start and end date to valid javascript dates.
Observed
The selectDateString is using the current date as apposed to the start and end date that were set via the props. When opening the actual modal, the dates are correctly set. It looks to be a reactivity issue.
Expected
selectDateString to accurately show the date that has been set via props.
Details I am using the DateTimePicker as below
<DateTimePicker ref="datePicker" :start-date="startDate" :end-date="endDate" default false @onChange="onDateChange" />
In my mounted lifecycle event, I set both the start and end date to valid javascript dates.
Observed The selectDateString is using the current date as apposed to the start and end date that were set via the props. When opening the actual modal, the dates are correctly set. It looks to be a reactivity issue.
Expected selectDateString to accurately show the date that has been set via props.