Skip to content

Question: Prevent calendar from switching to next/previous month when clicking outside of current month #797

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
germsb opened this issue Mar 29, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@germsb
Copy link

germsb commented Mar 29, 2024

Is there any option to prevent this behavior?
I find it very disturbing when you have to select a period between two months.

Capture.video.du.2024-03-29.12-59-00.webm

https://stackblitz.com/edit/vuepic-vue-datepicker-jq9xwm?file=src%2Fcomponents%2FPlayground.vue

@germsb germsb added awaiting triage The issue is not reviewed by the maintainers enhancement New feature or request labels Mar 29, 2024
@Jasenkoo
Copy link
Contributor

This is expected behavior, and it is handled automatically when clicking a date. It would require some unnecessary checks to prevent this behavior. You can just hide the offset dates if it is causing a distraction.

@Jasenkoo Jasenkoo added wontfix This will not be worked on and removed enhancement New feature or request awaiting triage The issue is not reviewed by the maintainers labels Mar 30, 2024
@germsb
Copy link
Author

germsb commented Apr 10, 2024

This would certainly have represented a bit of work, but would have greatly improved input for the end user and reduced the number of clicks. I find it a shame and a little hasty to close this discussion without having thought about it at least.

@Jasenkoo Jasenkoo reopened this Apr 10, 2024
@Jasenkoo Jasenkoo added enhancement New feature or request and removed wontfix This will not be worked on labels Apr 10, 2024
@Jasenkoo
Copy link
Contributor

I will see what can be done, but can't promise anything, if it starts interfering with the existing logic, it will be closed.

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

2 participants