Skip to content

Setting a default date range error #71

@craigwillis85

Description

@craigwillis85

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions