-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Close AddressSearch results on blur #5832
Conversation
Should I put |
Nice! It looks like this fixes the gray bar under the field too right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be sure to test this on the date picker as well? We pass an onFocus prop there and I just want to double-check that it works still.
hmm not exactly.. the gray bar appear less now because we close the results on blur, but you will still see it if you do:
The gray bar will be there because it is focused and there are no results :( |
I didn't test it there, I'll do it now. |
But it's good that the gray bar is showing far less often! |
Played with the Date picker, it looks fine 🤞 |
|
K, I'm testing on android rigtht now. Wanna do iOS? |
sure! |
There is this ugly bug when we reload the page during the Screen.Recording.2021-10-13.at.5.21.35.PM.movbut I think that was there from before and we should make a different GH issue for it. I would think it is probably related to how we store/read the draft? info. |
…-search-close-on-blur
Worked in IOS 🎉 Screen.Recording.2021-10-13.at.5.38.21.PM.mov |
…-on-blur Close AddressSearch results on blur (cherry picked from commit 825977a)
🚀 Cherry-picked to staging by @Luke9389 in version: 1.1.7-15 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by @AndrewGable in version: 1.1.7-24 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.1.8-9 🚀
|
Details
keepResultsAfterBlur
prop fromGooglePlacesAutocomplete
so it closes on blurevent
toonBlur
andonFocus
inBaseExpensiTextInput
.GooglePlacesAutocomplete
will pass anonBlur
callback that checks if the focus is changing to a result on blur. If we don't pass theevent
parameter, it fails to check that and closes the results list too soon.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/181023
Tests / QA
Routing number: 123123123
Account Number: 1111222233331111
Company address
, you should see some suggested addresses appearing.Company address
field and select one of the resultsCompany address
should have the value of the selected result.Tested On
Screenshots
Web
Screen.Recording.2021-10-13.at.3.45.03.PM.mov
Mobile Web
Desktop
iOS
Android