react-multi-date-picker icon indicating copy to clipboard operation
react-multi-date-picker copied to clipboard

On mobile, selecting two dates very quickly ends up deselecting both of them

Open emileindik opened this issue 2 years ago • 3 comments

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".

emileindik avatar Oct 21 '23 17:10 emileindik

Does this problem occur when you add the "rmdp-mobile" class to the DatePicker or do you also have this problem without mobile mode?

shahabyazdi avatar Oct 28 '23 06:10 shahabyazdi

One more question. Can you reproduce the problem on the website or are you seeing this in your implementation?

shahabyazdi avatar Oct 28 '23 06:10 shahabyazdi

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

emileindik avatar Oct 29 '23 01:10 emileindik