-
Notifications
You must be signed in to change notification settings - Fork 17
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
Removed AutoComplete onBlur handling when user has clicked a menu item #382
Conversation
Found a bug: start with the state and country fields selected. Change the country field and you see the state field clear in the UI. However the redux state for the state field doesn't change until you interact with the state field, so it will pass validation despite being a state for a different country. |
confirmed, I was able to repro that |
testing scenarios:
I'm verifying by doing the UI interaction and then confirming the redux state is correct. Additionally, to verify interactions that are intended to select nothing, I'm confirming that a validation error pops up when I 'save and continue'. |
OK so besides the bug pointed out above things seem to be working correctly to me! |
I'm not sure why the tests are failing. I'm just going to run them again and hope for the best I filed the bug I mentioned as #383 |
cool, let's merge this and take care of that later. assuming the tests pass (maybe we should run them twice since they failed once) 👍 |
I see the comment you made in my email but not on github... 😨 I think the tests on Travis are just timing out because it's unbelievably slow right now |
OK github comments still don't seem 💯%, but this is 👍 from me once the tests pass reliably. |
ahaha and then they reappear 😱 |
8e32a47
to
b8b7670
Compare
b8b7670
to
82239c1
Compare
What are the relevant tickets?
Fixes #380
What's this PR do?
When the user selected an item the onBlur handler cleared the item that was selected immediately afterwards. This change causes the onBlur handler not to be invoked if the user just selected a menu item.
Where should the reviewer start?
this.timerTouchTapCloseId
is set after the user selects a menu item, so we are using this in the onFocus callback to determine if the loss of focus was caused by clicking a menu itemHow should this be manually tested?
We should be thorough in testing all different scenarios. For each item below notice these things:
If you're testing this locally you should also be able to verify the redux state matches what the field indicates.
For each item below start by opening a new employment form with the plus button. Then:
Also:
Hopefully that covers all the scenarios we care about!
Any background context you want to provide?
Screenshots (if appropriate)
What GIF best describes this PR or how it makes you feel?