SaturnTeam / saturn-datepicker

Angular Material Datepicker with range selection
MIT License
278 stars 110 forks source link

Bug when changing between months #141

Closed LeParadoxHD closed 3 years ago

LeParadoxHD commented 4 years ago

Hi, I just noticed something that happens when you switch between months, I'm not sure if it's a mistake or if it's on purpose. What happens is that if you select a day in range mode, and then change the month, a day will be selected automatically, sometimes at random.

It doesn't show as if you clicked on the end day but with a circle and the range from the start day that is in another month.

This also happens in the public demo.

Testcase:

  1. Click on the 24th day of this month.
  2. Go to the next month (leaving another day as highlighted in range mode because of mouseover, for example, 3)
  3. Day 3 of next month is semi-selected.

Is this intentional behavior or is it a bug?