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

Problem with Race Condition on Time Picker clock face #1835

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

LixarBowyay
Copy link

I am having a problem with the face on the Time Picker component. I tried to post a bug about this but you guys could not reproduce so it got closed. However, I have since figured out how to reproduce it. Our site is large and there is a lot to load so all you need is a load time of longer than 1 second or any list longer than 100 remote items being loaded and the bug will happen. I have included a zipped .mov file that shows me reproducing this bug just to show you it exists.

You open the Time Picker, press once on any hour position on the clock face, the dialog proceeds forward into choosing the minutes and yet the hour has not moved from it's initial position.

It only seems to happen on the very first click when the Time Picker has been opened. If you open it and instead click+drag in any direction this bug does not occur. It also does not occur if (after being taken to the minutes selection phase) you return back to the hour selection phase and re-select the option you wanted. I believe it's a simple race condition happening here and so that's why I added that awful quick fix. This fix is less about the 200 milliseconds wait time and more about popping this event from the next position in the Call-stack to the end.

The code I added is really dirty as a quick fix so it's mostly just to bring your attention to the problem in some way other than just as a closable issue ticket. Hopefully you can help me to resolve this issue asap since I use this repository heavily and would like to not require self-hosted NPM packages if possible.

bug1-edit.mov.zip

LixarBowyay and others added 2 commits March 21, 2018 10:15
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

Successfully merging this pull request may close these issues.

None yet

1 participant