-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Description
I'm trying to set a default date, using the initRange prop, but I'm getting an error.
I have a data property called dateRange
data: function () {
return {
dateRange: {
'start': '2018-09-14',
'end': '2018-09-15',
}
}
}
Which I'm passing to the component:
<vue-rangedate-picker @selected="onDateSelected" i18n="EN" righttoleft="false" initRange="dateRange"></vue-rangedate-picker>
But this is throwing the following error:
[Vue warn]: Invalid prop: type check failed for prop "initRange". Expected Object, got String.
This is odd, since the prop I'm passing is an object, unless I'm mistaken?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels