Skip to content

Arrow Key Navigation Not Working on First Calendar in Multi-Calendar Mode #1086

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
virochan999 opened this issue Mar 4, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@virochan999
Copy link

Description

When using vue-datepicker with multi-calendars and arrow-navigation props enabled, the keyboard arrow navigation is not functioning properly. Specifically, arrow key navigation works correctly on the second calendar but does not work at all on the first calendar.

Steps to Reproduce

  1. Implement a date picker with both multi-calendars and arrow-navigation props enabled
  2. Open the date picker
  3. Try to navigate using arrow keys (left, right, up, down) on the first calendar
  4. Notice that arrow navigation doesn't work
  5. Click on the second calendar
  6. Observe that arrow navigation works correctly on the second calendar

Current Implementation

<VueDatePicker 
  :placeholder="getPlaceHolder" 
  :month-change-on-arrows="true" 
  :locale="locale"
  :alt-position="customPosition" 
  :aria-labels="ariaLabels" 
  :day-names="getWeekDaysList" 
  week-start="0"
  :month-change-on-scroll="false" 
  :min-date="getMinDate" 
  :max-date="getMaxDate" 
  :enable-time-picker="false"
  :model-config="{ type: 'string', format: 'YYYY-MM-DD' }" 
  :format="() => ''" 
  ref="datepickerRef"
  v-model="dateRange" 
  @range-start="onRangeStart" 
  @range-end="onRangeEnd" 
  @open="openCalendar"
  hide-offset-dates 
  prevent-min-max-navigation 
  range 
  arrow-navigation 
  multi-calendars
/>
@virochan999 virochan999 added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Mar 4, 2025
@harmeet1610
Copy link

"I’m also facing the same issue with calendar arrow navigation. Have you found any workaround or fix for this? I’d appreciate any updates from the maintainers or the community. Looking forward to a resolution!"

Let me know if you want to tweak it further!

@sahilrajthapa
Copy link
Contributor

@virochan999 Currently, arrow navigation is only supported on the single calendar view. It is mentioned in the docs.

@Jasenkoo Jasenkoo removed the awaiting triage The issue is not reviewed by the maintainers label Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants