Open nachikethashu opened 5 years ago
Hello, Can you confirm whether it's a bug or not?
Hi @nachikethashu - Could you clarify what you would like to happen?
Do you want multiple selected ranges?
No, If you check this - https://codesandbox.io/s/vjq31pov87 you can see that the range selection is not working here.
It works only if you remove setState
inside handleDateRangeSelectStart
Here's the link to the issue reproduced in codesandbox - https://codesandbox.io/s/vjq31pov87
Click on any date and it'll never go into range selection mode. keeps getting stuck in from-date selection.
All I'm doing there is setting some state inside(not related to range)
onSelectStart
handler.Is it a bug from the component or my logic?