Skip to content

Auto apply + partial range = not working as expected #1113

@Creatium

Description

@Creatium

Hey. I am using this plugin to implement my own Datepicker component (custom dropdown, presets, apply butron etc.). Right now I have VueDatePicker component with auto-apply, range (including partialRange) turned on. I would like to allow user to select not only a full range, but also a starting or an ending dates. But I see that when using auto-apply and partialRange, it does not really work. Is this a known issue?

<Datepicker v-model="date" :range="{ partialRange: true }" autoApply />

Testing can be done in your StackBlitz env: https://stackblitz.com/edit/vuepic-vue-datepicker?file=src%2Fcomponents%2FPlayground.vue (just replace the component code with my given).

When you select only a single date and click outside the dropdown, the date is not being selected. Am I missing something or this is really a bug?

I dont see documentation mentioning this scenario. If this is the expected behavior, how would you suggest working around it?

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