Skip to content

Arrow Navigation always starts at top-left instead of at selected date #1118

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
Elaktrato opened this issue Apr 15, 2025 · 0 comments
Open
Labels
awaiting triage The issue is not reviewed by the maintainers bug Something isn't working

Comments

@Elaktrato
Copy link

Describe the bug
When having the arrow-navigation active on a datepicker instance, it will always start out at the top-left of wherever you are inside the dialog. So for example when you open a fresh dialog you start on the month and whatever arrow key you press it will go from there, meaning arrow down will lead to the first week, first or second day of the month. The same also goes for any overlays however, so when picking a year you start out at 1900 instead of for example the current year.
focus-start-date and start-date don't change this behaviour

To Reproduce
Steps to reproduce the behavior:

  1. Go to the official documentation
  2. Click on the example for the arrow navigation
  3. Try using the arrow keys to navigate the date grid or go to the year overlay and press arrow down to see your focus being set to 1903

Expected behavior
Have the arrow keys start from the current date or the model-value date, month or year, depending on the overlay.
I suppose focus-start-date and start-date should also change the starting point of the arrow navigation

Desktop & mobile (please complete the following information):

  • Browser: Chrome 135.0.7049.85
  • Using vue-datepicker version 11.0.2
@Elaktrato Elaktrato added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting triage The issue is not reviewed by the maintainers bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant