chakra-ui / ark

Ark UI is a headless UI library with over 45+ components designed to build scalable Design Systems that works for a wide range of JS frameworks.
https://ark-ui.com
MIT License
3.8k stars 109 forks source link

Unable to select Year when min and max dates are less than 1 year and overlap 2 unique years #3044

Open kg-and-digital opened 1 week ago

kg-and-digital commented 1 week ago

Description

When I set a min and max dates than are less than 1 year but span over 2 unique years, I expect to be able to select both years in the Year View. Instead it only allows 1 year to select (the later one)

Link to Reproduction (or Detailed Explanation)

https://codesandbox.io/p/devbox/black-sun-gc88nf

Steps to Reproduce

  1. Click on 'February 2019' button twice to take you to Year View
  2. Click on year 2018 (no effect) year is not selected
  3. Click on year 2019 - selects year as expected.

Expectation is both years should be selectable.

Ark UI Version

4.4.0

Framework

Browser

Google Chrome

Additional Information

No response