vue-datepicker icon indicating copy to clipboard operation
vue-datepicker copied to clipboard

Auto apply + partial range = not working as expected

Open Creatium opened this issue 1 year ago • 1 comments

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?

Creatium avatar Mar 28 '25 14:03 Creatium

Stale issue message

github-actions[bot] avatar May 28 '25 03:05 github-actions[bot]

Stale issue message

github-actions[bot] avatar Aug 16 '25 03:08 github-actions[bot]