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

Fix ExpensiInput autoFocus & tab Focus #4593

Merged
merged 2 commits into from
Aug 12, 2021

Conversation

parasharrajat
Copy link
Member

@parasharrajat parasharrajat commented Aug 11, 2021

Details

Fixed Issues

$ Fixes #4514

Tests | QA Steps

  1. Open the Login page on the Web.
  2. Observe the email input. It should be autofocused correctly.
  3. Go to the password page, observe the password input. If it is auto-filled, input should be focused correctly.
  4. Now try to navigate using the Tab key. Ony single tab pres, the focus should be set on the Input.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

focus-fix.mp4

Mobile Web

foucs-fix-m

Desktop

iOS

Android

fcous-fix-a

@francoisl
Copy link
Contributor

@roryabraham do we need to apply the CP Staging label before merging this?

@roryabraham
Copy link
Contributor

@francoisl Yep!

@github-actions
Copy link
Contributor

⚠️ ⚠️ Heads up! This pull request has the CP Staging label. ⚠️ ⚠️
Merging it will cause it to be immediately deployed to staging, even if the open StagingDeployCash deploy checklist is locked.

@roryabraham
Copy link
Contributor

Actually JK I am going to remove the CP label in this case to help me finish testing #4274 for the case of manual CP's

roryabraham
roryabraham previously approved these changes Aug 12, 2021
Copy link
Contributor

@roryabraham roryabraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I tested this on iOS Safari and also desktop and it seems to work as expected 👍

However, I think we maybe should leave a comment explaining why we are not using the autoFocus prop, to prevent someone coming along and undoing this in the future. NAB though.

Co-authored-by: Rory Abraham <47436092+roryabraham@users.noreply.github.com>
@parasharrajat
Copy link
Member Author

@roryabraham Your suggestions are up. Thanks.

@roryabraham
Copy link
Contributor

I am going to merge this w/o waiting for E2E because I want to test the CP audit trail and because the only change between the previous commit, which passed all checks, is a comment.

@roryabraham roryabraham merged commit ff62078 into Expensify:main Aug 12, 2021
@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@roryabraham
Copy link
Contributor

roryabraham commented Aug 12, 2021

CPing this to staging here: https://github.com/Expensify/App/actions/runs/1125331217

github-actions bot pushed a commit that referenced this pull request Aug 12, 2021
Fix ExpensiInput autoFocus & tab Focus

(cherry picked from commit ff62078)
@roryabraham
Copy link
Contributor

Staging deploy is running here, so hopefully once that finishes we'll see a comment on this PR to the tune of: "CPed to staging by @roryabraham..."

@OSBotify
Copy link
Contributor

🚀 Cherry-picked to staging by @roryabraham in version: 1.0.85-3 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@botify
Copy link

botify commented Aug 17, 2021

This has been deployed to production and is now subject to a 7-day regression period.
If no regressions arise, payment will be issued on 2021-08-24. 🎊

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @isagoico in version: 1.0.85-9 🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @roryabraham in version: 1.0.85-10 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@botify
Copy link

botify commented Aug 25, 2021

This has been deployed to production and is now subject to a 7-day regression period.
If no regressions arise, payment will be issued on 2021-09-01. 🎊

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @roryabraham in version: 1.0.86-11 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 failure ❌
🕸 web 🕸 success ✅

@botify
Copy link

botify commented Aug 30, 2021

This has been deployed to production and is now subject to a 7-day regression period.
If no regressions arise, payment will be issued on 2021-09-06. 🎊

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.

Input does not handle Tab focus and autofocus correctly.
5 participants