Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Creatium opened this issue Mar 28, 2025 · 0 comments
Open

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

Creatium opened this issue Mar 28, 2025 · 0 comments

Comments

@Creatium
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant