-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix : Pressing Tab button in AddressSearch inputs #6345
Fix : Pressing Tab button in AddressSearch inputs #6345
Conversation
I have read the CLA Document and I hereby sign the CLA |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
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.
Needs some minor adjustments, mainly stylistic.
src/components/AddressSearch.js
Outdated
@@ -82,14 +83,30 @@ const AddressSearch = (props) => { | |||
} | |||
}; | |||
|
|||
const checkPressingTab = (event) => { | |||
if (event.key !== 'Tab') { |
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.
hmm, I don't think this needs to be it's own variable. Why not do the following?
onKeyPress: (event) => {
if (event.key !== 'Tab' || isSelected) {
return;
}
googlePlacesRef.current.setAddressText('');
},
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.
We tried similar way, but with "&&" operator instead "||", which led to the fact that only the last entered character would fit in the text field. Thank you.
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.
👍
@developvsn, Great job getting your first Expensify/App pull request over the finish line! 🎉 I know there's a lot of information in our contributing guidelines, so here are some points to take note of 📝:
So it might take a while before you're paid for your work, but we typically post multiple new jobs every day, so there's plenty of opportunity. I hope you've had a positive experience contributing to this repo! 😊 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@NikkiWines These commits are not signed. |
Nice catch @parasharrajat, I completely missed that (I've become too reliant on our automated checks in other repos 😅) Let's wait on consensus from Cole in this Slack thread, but I think Brandon's suggestion to revert + re-merge with signed commits is a good idea. |
🚀 Deployed to staging by @NikkiWines in version: 1.1.15-18 🚀
|
Nikki can you help with slack, I think we might lose some up-to-date information. We sent an invite request to contributors' email a month ago already. |
Ah, if you haven't been invited yet can you resend the email? It may have somehow gotten lost, someone on our contributor-management team will add you to slack. Going to push up a revert of this and then revert the revert so that the same changes are implemented but the commits are signed. |
🚀 Deployed to production by @roryabraham in version: 1.1.16-10 🚀
|
Details
Fixed Issues
$ 6235
Tests | QA Steps
1.Navigate to Company Information window.
2.Type an address that yield results in address search input.
3.Press "Tab" key or click to other input.
Tested On
Screenshots
Web
web.mov
Desktop
desktop.mov
iOS
Android
Mobile Web