react-multi-date-picker
react-multi-date-picker copied to clipboard
On mobile, selecting two dates very quickly ends up deselecting both of them
I was not able to reproduce this on desktop, only on mobile. I probably was not able to click fast enough on desktop. When you select two dates very quickly one after another, both dates get deselected. This is probably due to react's async rendering. The second click registers before the first date's state gets updated to "selected".
Does this problem occur when you add the "rmdp-mobile" class to the DatePicker or do you also have this problem without mobile mode?
One more question. Can you reproduce the problem on the website or are you seeing this in your implementation?
I use the "rmdp-mobile" class in my app and I am able to reproduce it on the website and in my application. I made a short screen recording on my mobile to demonstrate. Let me know if this makes sense. https://github.com/shahabyazdi/react-multi-date-picker/assets/8562758/636e3b69-f235-4d6f-aa8c-3891dc156f02