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

Web - New text input does not work with autofill #4597

Closed
kavimuru opened this issue Aug 12, 2021 · 28 comments · Fixed by #4632
Closed

Web - New text input does not work with autofill #4597

kavimuru opened this issue Aug 12, 2021 · 28 comments · Fixed by #4632
Assignees
Labels
DeployBlockerCash This issue or pull request should block deployment Engineering Hourly KSv2 Reviewing Has a PR in review

Comments

@kavimuru
Copy link

kavimuru commented Aug 12, 2021

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Go to https://staging.new.expensify.com
  2. Log in with expensifail account
  3. Navigate to the company page https://staging.new.expensify.com/bank-account/company.
  4. Observe the page

Expected Result:

When using auto-fill, the label should not overlap the value in the text box.

Actual Result:

When the text input is auto-filled, the label overlaps with the value.

Workaround:

Don't use autofill (unacceptable)

Platform:

  • Web

Version Number:
1.0.85-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
**Notes/Photos/Videos:

Screen Shot 2021-08-12 at 2 54 56 PM

Expensify/Expensify Issue URL:

View all open jobs on Upwork

@kavimuru kavimuru added the DeployBlockerCash This issue or pull request should block deployment label Aug 12, 2021
@OSBotify
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@MelvinBot
Copy link

Triggered auto assignment to @Jag96 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@Jag96
Copy link
Contributor

Jag96 commented Aug 12, 2021

It looks like #3414 is the offending PR here, the main change here was replacing TextInputWitihLabel with ExpensiTextInput here and updating the Picker used here.

I confirmed the issue happens on version 1.0.83-2 which is the version after this PR was merged (it isn't happening on 1.0.83-1 which is production atm).

@kakajann can you please take a look? cc @roryabraham

@Luke9389
Copy link
Contributor

Luke9389 commented Aug 12, 2021

I'll be shortening the copy on the Company Address input field, so no need to work on that here.

The regression here is that the input label overlaps with the value when the field gets auto-filled.
@MitchExpensify verified that this is happening

@Luke9389 Luke9389 changed the title Web - Add payment card - Company information page has visual issues Web - New Text Input does not work with auto-fill Aug 12, 2021
@Luke9389
Copy link
Contributor

@kavimuru, thanks for making this issue. I've changed the title and the description to reflect the exact problem that we need to get fixed.

@Jag96

This comment has been minimized.

@parasharrajat

This comment has been minimized.

@Jag96

This comment has been minimized.

@Luke9389 Luke9389 changed the title Web - New Text Input does not work with auto-fill Web - Add payment card - Company information page has visual issues Aug 12, 2021
@MitchExpensify

This comment has been minimized.

@Luke9389
Copy link
Contributor

@parasharrajat, to clarify, the tab behavior has indeed been fixed by your PR. It's the auto-fill problem that we're still seeing.

@parasharrajat
Copy link
Member

parasharrajat commented Aug 12, 2021

OK, I think I found the main issue for autofill. the technique to trigger the label position is not correct as it is not checking the current state of the input value.

So instead of checking the prop value, we should check the value in the inputField. This value is a prop that will never update when the value is auto-filled.

if (this.props.value.length === 0) {

We have to track the value changes using the onChangeText as this component is controlled. I am working on the implementation to test it.

@parasharrajat
Copy link
Member

It's good to revert the title to Web - New Text Input does not work with auto-fill

@Luke9389

This comment has been minimized.

@Jag96

This comment has been minimized.

@parasharrajat

This comment has been minimized.

@Luke9389
Copy link
Contributor

OK, @parasharrajat, we're gonna make this issue exclusively about the auto-fill problem, and then Export this to Upwork, and get you hired for this auto-fill fix ASAP. Sound good?

@Luke9389 Luke9389 changed the title Web - Add payment card - Company information page has visual issues Web - New text input does not work with autofill Aug 12, 2021
@parasharrajat
Copy link
Member

Yup @Luke9389 Fix is ready.

@Luke9389
Copy link
Contributor

Awesome, @MitchExpensify is getting the job set up in Upwork as we speak.

@MitchExpensify
Copy link
Contributor

Upwork job

@parasharrajat
Copy link
Member

PR #4632 cc: @Luke9389

@lmf-git
Copy link

lmf-git commented Aug 12, 2021

I found this via upwork.

The reason your autofill field isn't working is that autofill does not trigger the change event. I've encountered this before but I had to stray deep into my memory palace to figure out why.

I'm hesitant to dedicate my time to this when someone could come along and swipe my investment but I thought I'd at least leave this comment to assist you.

@Jag96 Jag96 added the Reviewing Has a PR in review label Aug 12, 2021
@isagoico
Copy link

isagoico commented Aug 13, 2021

Retest for this was a pass 🎉 These 2 issues are still reproducible tho #4630 and #4631

image

@Luke9389
Copy link
Contributor

Thanks, @isagoico! The other two issues still occurring is expected. One of them was merged after you tested this, and the other hasn't been merged yet.

@lmf-git

This comment has been minimized.

@mallenexpensify

This comment has been minimized.

@lmf-git

This comment has been minimized.

@mallenexpensify

This comment has been minimized.

@MitchExpensify
Copy link
Contributor

Paid! cc @parasharrajat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DeployBlockerCash This issue or pull request should block deployment Engineering Hourly KSv2 Reviewing Has a PR in review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants