You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-12-07] [$500] Address - Blue border appears around the row and the field is not focused when using Tab key #31203
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 1.3.98-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Action Performed:
Navigate to staging.new.expensify.com
Go to Settings > Profile > Personal details > Address
Click on any field
Navigate to the next field with tab key
Expected Result:
The next field will be focused with just one click
Actual Result:
A blue border appears around the field and the next field is not focused. It is only focused after pressing Tab key for the second time
This issue also happens in other area of the app that involve entering value
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Address - Blue border appears around the row and the field is not focused when using Tab key[/-][+][$500] Address - Blue border appears around the row and the field is not focused when using Tab key[/+]on Nov 10, 2023
Previously we used focusable to determine tabIndex. However, now focusable is replaced with tabIndex due to RNW upgrade. Therefore, if tabIndex is used, we should prioritize it and should not depend merely on focusable (deprecated) and accessible.
What changes do you think we should make in order to solve the problem?
The PR that introduced the bug has been identified. Link to the PR:
This started occuring due to the RNW upgrade but we can't really call it a regression as it's out of our hands.
The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
N/A
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
N/A
Determine if we should create a regression test for this bug.
This is a minor visual issue that doesn't really affect the flow in any significant way so I don't think a regression test is necessary here.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]Address - Blue border appears around the row and the field is not focused when using Tab key[/-][+][$500] Address - Blue border appears around the row and the field is not focused when using Tab key[/+]melvin-bot commentedon Nov 10, 2023
Triggered auto assignment to @isabelastisser (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Nov 10, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01e6211747d5d8420e
melvin-bot commentedon Nov 10, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Nov 10, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws (
External)tienifr commentedon Nov 10, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Blue border appears around the row and the field is not focused when using Tab key. This issue happens to all
TextInputcomponents.What is the root cause of that problem?
The container wrapping text input is intentionally set with
tabIndex=-1to avoid navigating by tab to focus on itself.App/src/components/TextInput/BaseTextInput/index.js
Line 258 in 3939bea
However inside
WebGenericPressable, we do not passtabIndexproperly:App/src/components/Pressable/GenericPressable/index.tsx
Line 16 in 3939bea
Previously we used
focusableto determinetabIndex. However, nowfocusableis replaced withtabIndexdue to RNW upgrade. Therefore, iftabIndexis used, we should prioritize it and should not depend merely onfocusable(deprecated) andaccessible.What changes do you think we should make in order to solve the problem?
Pass
tabIndexlike this:What alternative solutions did you explore? (Optional)
NA
dummy-1111 commentedon Nov 10, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Blue border appears on the row when pressing tab key in the address page
What is the root cause of that problem?
To prevent focusing by tab, we set
tabIndex=-1belowApp/src/components/TextInput/BaseTextInput/index.js
Line 258 in 3939bea
but
tabIndexis changed hereApp/src/components/Pressable/GenericPressable/index.tsx
Line 16 in 3939bea
This is the root cause
What changes do you think we should make in order to solve the problem?
I think we need to use
props.tabIndexif existsUpdate
App/src/components/Pressable/GenericPressable/index.tsx
Line 16 in 3939bea
to
This works as expected
What alternative solutions did you explore? (Optional)
isabelastisser commentedon Nov 13, 2023
Hey @Ollyws, can you please review the proposals above? Thanks!
30 remaining items
isabelastisser commentedon Dec 7, 2023
@Ollyws can you please complete the list above? Thanks!
isabelastisser commentedon Dec 7, 2023
@Ollyws and @tienifr please accept the offers in Upwork and I will process the payments. Thanks!
tienifr commentedon Dec 8, 2023
@isabelastisser I accepted, thanks!
isabelastisser commentedon Dec 8, 2023
Bump @Ollyws to complete the checklist above. Thanks!
isabelastisser commentedon Dec 11, 2023
Hey @Ollyws, can you please complete the checklist above? Thanks!
Ollyws commentedon Dec 11, 2023
BugZero Checklist:
This started occuring due to the RNW upgrade but we can't really call it a regression as it's out of our hands.
N/A
N/A
This is a minor visual issue that doesn't really affect the flow in any significant way so I don't think a regression test is necessary here.
isabelastisser commentedon Dec 11, 2023
Thanks! @Ollyws, please accept the offer in Upwork.
Ollyws commentedon Dec 11, 2023
Accepted, thanks!
Ollyws commentedon Dec 14, 2023
@isabelastisser The job is still open and unpaid on upwork for me if you could take a look, thanks!
isabelastisser commentedon Dec 18, 2023
All set!