vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜

Home Page:https://antdv.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: week-range in range-picker gets highlighted wrongly

mrjln opened this issue · comments

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.1

Environment

Chrome, vue ^3.4.15, Version 1.65.126 Chromium: 124.0.6367.118 (Officiële build) (arm64)

Reproduction link

https://antdv.com/components/date-picker

Steps to reproduce

When you go to your own docs and select the week-range picker: select a range of 3 weeks.
You notice that the weeks you select do not get highlighted correctly.
The weeks do get selected correctly in the inputfield.

Example 1 : week 19 - 21 selected and only week 22 is highlighted:
image

Example 2: week 24- week 26 selected, a week range within 1 month, also does not get highlighted correctly:
image

What is expected?

I expect the range to be highlighted, like it is in the normal range picker

What is actually happening?

a whole other week is highlighted or just 1 week is highlighted.