Backward autoRange selects two extra months.
Opened this issue · 0 comments
ShekharSahu commented
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.
Is it a known bug? I didn't look into the source code.