Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DatePicker] Able to select the date less than min date in some case #984

Open
n-srg opened this issue Feb 15, 2021 · 1 comment
Open

[DatePicker] Able to select the date less than min date in some case #984

n-srg opened this issue Feb 15, 2021 · 1 comment

Comments

@n-srg
Copy link
Contributor

n-srg commented Feb 15, 2021

Describe the bug
A user can select the date that is less than minimal in case the selected value was less than the minimal possible date.

To reproduce

  1. Go to https://ui.tradeshift.com/v12/#components/datepicker/ use the example 2
  2. see the min: '1984-01-01', and specify the value less than this date (I used value: '1983-01-01',)
  3. open the date picker. See you can select any date starting from the 1983-01-01. This conflicts with the minimum possible date which is 1984-01-01 (I can select 1983-02-02 for example)
  4. you can scroll until the minimum date, but AFTER you can not scroll back to the selected value

Expected behavior

  1. Expected to open the date picker on the first date available for selection (if the min is greater than selected date than date picker should be opened with the minimal date on the panel. otherwise - keep the current behavior (date picker opens with the focus on the selected date)
  2. Expected to be able to scroll back to the selected date, but all unavailable (because of min value) dates should be marked with strikethrough numbers

Additional context
This bug was reported by one of our customers

@Kian-Esmaeilpour
Copy link
Contributor

Thanks for reporting :)
cc: @lauratanase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants