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

Backward autoRange selects two extra months. #88

Open
ShekharSahu opened this issue Jun 30, 2022 · 0 comments
Open

Backward autoRange selects two extra months. #88

ShekharSahu opened this issue Jun 30, 2022 · 0 comments

Comments

@ShekharSahu
Copy link

ShekharSahu commented Jun 30, 2022

Reproducible form the example picker demo
https://nickeljew.github.io/react-month-picker/

If the start month picked is greater than the end month. The number of auto selected months are equal to the autoRange value. However when the opposite is done. Two extra months are selected.

In the example it seems the autoRange is 6, but backward auto range selects 8 months.
image

Is it a known bug? I didn't look into the source code.

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

1 participant