Skip to content

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

@virochan999

Description

@virochan999

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
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions