Skip to content

Enable inline vertical scroll #885

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

Closed
cwist2 opened this issue May 29, 2024 · 1 comment
Closed

Enable inline vertical scroll #885

cwist2 opened this issue May 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@cwist2
Copy link

cwist2 commented May 29, 2024

On mobile, it would be great to have a vertical scrolling calendar, similar to the Calendar app on iOS/Android. I want to add months as I scroll down to the bottom. I've tried many approaches to get this to work, but I consistently encounter issues when dynamically changing the count of MultiCalendarsOptions.

Here is a sample of the current behavior:
https://stackblitz.com/edit/vuepic-vue-datepicker-nqzywp?file=src%2Fcomponents%2FPlayground.vue,src%2FApp.vue

As you can see on the Stackblitz, each added month is displayed as "January 0".

Describe the solution you'd like
The solution would be to allow changing the count of MultiCalendarsOptions.

Describe alternatives you've considered
I found that calling datepickerRef.value.setMonthYear({}) (where datepickerRef is the ref of the Datepicker component) after incrementing the count of MultiCalendarsOptions works, but only if the modelValue of the Datepicker component is not defined.

Tested on vue-datepicker v8.7.0

@cwist2 cwist2 added awaiting triage The issue is not reviewed by the maintainers enhancement New feature or request labels May 29, 2024
@simbacod3
Copy link

+1 for this feature, it would be great, encountered the same issue recently, it is quite blocking our development as we really wanna use this lib.

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

No branches or pull requests

3 participants