freshworks / crayons

🖍️ Crayons - A UI Kit comprising of web components for building Freshworks Apps!

Home Page:https://crayons.freshworks.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] - Datepicker maxDate/minDate can be updated from the month select dropdown

aishik-biswas opened this issue · comments

Component
Datepicker component

Describe the bug
Even when we set the maxDate/minDate, the month value will be changed incorrectly when, updating from the month select dropdown.

To Reproduce
Steps to reproduce the current behavior:

  1. Set maxDate
  2. Click on datepicker
  3. Change month to something greater than maxDate
  4. See the issue

Expected behavior
Month dropdown should only allow the months excepted in maxDate/mindate.

Screenshots
image

@aishik-biswas This is the expected behaviour. There will be no restriction for the month in the month dropdown. User will be able to select the month that falls beyond the maxDate or minDate. However, the dates will be disabled. The user will not be able to select any date that falls beyond the maxDate/minDate.