Baseweb: Datepicker: years before 2000 cause several issues

Created on 4 Dec 2019  路  3Comments  路  Source: uber/baseweb


https://codesandbox.io/s/datepicker-tkn6r

Current Behavior

If I set the current value or the minDate of a Datepicker to a date before Y2K, I see the following behaviors:

(See the linked codesandbox for an example that behaves problematically)

  • I can't use the left-arrow button to select months _before_ Jan 2000 (despite my minDate being earlier than that):

disabled_left_arrow

  • I _can_ use the right-arrow button to select months _after_ my maxDate:
    right_arrow_should_disable

  • The month dropdown doesn't contain any values:
    no_results

Expected Behavior

  • Should be able to select dates prior to 2000, if they're within my date range
  • Should not be able to select dates greater than my date range, even if my minDate is prior to 2000
  • I should see values in the month dropdown, even if my minDate is prior to 2000

Your Environment

| Tech | Version |
| ------- | ------- |
| Base UI | v9.25.0 |
| React | 16.8.6 |
| browser | Chrome Version 78.0.3904.108 (Official Build) (64-bit) |

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.
bug help wanted

Most helpful comment

Hi @gergelyke,

I'll try to send the PR tomorrow.

All 3 comments

@tconkling can you help us look into this?

Hi @gergelyke,

I'll try to send the PR tomorrow.

Was this page helpful?
0 / 5 - 0 ratings