Open yuwenmemon opened 3 weeks ago
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allgandalf (External
)
Triggered auto assignment to @anmurali (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
Chrome Browser Has Mistaken Form Fields For Inputs in Expensify Chat
This issue is not confined to the Onboarding form fields; it also affects other fields, such as the name field in the profile. We should not rely solely on labels for Google to accurately predict the purpose of each field.
We have an autocomplete
attribute that we should use for all TextInput components where we are encountering this problem. We can also set autocomplete to off in the fields where we don't want google to autocomplete.
More Info here.
Chrome browser on mobile tries to autocomplete some input fields like the name in the signup process or in the profile, the merchant when adding expenses etc and in doing so it shows options like Credit Card autofill. NOTE. I was unable to reproduce this in the Chat with concierge.
Autocomplete is not disabled in components/TextInput
even though we are treating it as disabled by not propagating the property in the components/Form/InputWrapper
component. Since it's not disabled Chrome uses the label to try and understand how to do that autofill.
Before passing the props by the wrapper component in: https://github.com/Expensify/App/blob/0c8455280c738a5db596f34409a0a3177e682e7f/src/components/TextInput/index.tsx#L58-L59
We should disable it explicitly by adding:
autoComplete="off"
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
That would still allow for the props
to add an autocomplete option in the wrapper component for special use-cases of the input field.
@yuwenmemon, @anmurali, @allgandalf Whoops! This issue is 2 days overdue. Let's get this updated quick!
Cannot reproduce the first issue
I can reproduce the second
@allgandalf what do you think of the proposals?
There is something wrong with my k2, not able to see recent issues, (Maybe the token has expires 💢 , I will review the Proposals after this deploy blocker today @trjExpensify
Thanks!
Reviewing Proposals now ♻️
@Nodebrute @klajdipaja are you able to reproduce the 1st issue? can you share a recording of it?
For the second issue:
I am able to reproduce the second issue, but none of the proposals above have the RCA or the solution for the issue, so i suggest both to please update your proposals, this issue is also open for proposals from other contributors 🙏
@Nodebrute @klajdipaja will you guys be able to update your proposals ?
@allgandalf I was unable to reproduce the first issue, only the second one. As for my proposal you are right I tried again and it did not provide the expected fix and with all my research all I could find is that this is a default behavior of Chromium browsers. The root cause to me seems to be a "bug" or maybe default behavior in Chrome that for every input no matter if you have requested autocompletion or not, the autocompletion bar with the three icons show up. When autocomplete is specified to some type than in addition to these three default icons you could also see a list of suggestions.
There's a long list of hacks on this gist https://gist.github.com/niksumeiko/360164708c3b326bd1c8 that some of the users report as useful but non actually work to remove the whole autofill bar and to be honest I don't think we should aim to go in that direction. I see three options here:
maxLength={25}
multiline={true}
numberOfLines={1}
```.
I can prepare a proposal for this if you think that would be the direction you want to go.
@yuwenmemon @anmurali @allgandalf this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
It seems like we're not able to reproduce the first issue across the board, so I'm fine with us tackling just the second issue in proposals.
yeah, waiting for proposals on this one 👍
not overdue sir melvin 🙇
@yuwenmemon, @anmurali, @allgandalf Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Not overdue, waiting for proposals
Version Number: 9.0.23-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail: Caught during CVP Testing Email or phone of affected tester (no customers): yuwenis+alice1@gmail.com Logs: N/A Expensify/Expensify Issue URL: N/A Issue reported by: @yuwenmemon Slack conversation: https://expensify.slack.com/archives/C036QM0SLJK/p1724431920271019
There are two issues that are similar.
First Issue
Action Performed:
Get paid back from my employer
from the intent selectorExpected Result:
Actual Result:
Second Issue
Expected Result:
Actual Result:
Workaround:
N/A
Platforms:
Which of our officially supported platforms is this issue occurring on?
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @allgandalf