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

MomentUtils getYearRange #340

Closed
alexander-morozov opened this issue Apr 9, 2018 · 2 comments
Closed

MomentUtils getYearRange #340

alexander-morozov opened this issue Apr 9, 2018 · 2 comments

Comments

@alexander-morozov
Copy link
Contributor

alexander-morozov commented Apr 9, 2018

Steps to reproduce

  1. set minDate 'Jan 2 2017'
  2. set maxDate 'Jan 1 2018'

Expected behavior

2017 and 2018 years are available to select

Actual behavior

only 2017 year is available to select in years picker

The main reason is that momentUtils.getYearRange returns only 2017 year in case above

@cherniavskii
Copy link
Member

Here's an example: https://codesandbox.io/s/j7pvn7v4jy

P.S. Please include an example next time, it will save a lot of time for us ;)

@dmtrKovalenko
Copy link
Member

Fixed in rc.7

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

3 participants