javascript - Arrow Key Navigation Not Working on First Calendar in Multi-Calendar Mode in vue3datepicker - Stack Overflow

When using vue-datepicker with multi-calendars and arrow-navigation props enabled, the keyboard arrow n

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

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745042801a4607912.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信