Skip to content

[HOLD ON #22589] [$1000] DEV: Web- Console Error on Display Name Page #23128

Closed

Description

@kbecciv

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. In Dev go to http://localhost:8080/
  2. Open your browser console
  3. Navigate to Settings > Profile > Display Name

Expected Result:

No console error

Actual Result:

Console error displayed:
Warning: TextInput contains an input of type text with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: Dev 1.3.42-9
Reproducible in staging?: n/a
Reproducible in production?: n/a
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
Notes/Photos/Videos: Any additional supporting documentation

2023-07-18-13-13-29.mp4

Expensify/Expensify Issue URL:
Issue reported by: @rayane-djouah
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689683515386629

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013c91f4e75ba03ad5
  • Upwork Job ID: 1681414222129561600
  • Last Price Increase: 2023-07-18

Activity

  1. added
    Daily
    Needs Reproduction
    Bug
    on Jul 18, 2023
  2. melvin-bot commented on Jul 18, 2023

    @melvin-bot

    Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. melvin-bot commented on Jul 18, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. jeet-dhandha commented on Jul 18, 2023

    @jeet-dhandha
    Contributor
    Screenshot 2023-07-19 at 2 26 58 AM

    Reproducible.

  5. melvin-bot commented on Jul 18, 2023

    @melvin-bot

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

  6. jliexpensify commented on Jul 18, 2023

    @jliexpensify
    Contributor

    Hi @danieldoglas I don't have a DEV environment, but are you able to reproduce this and let me know? Thanks in advance!

  7. danieldoglas commented on Jul 18, 2023

    @danieldoglas
    Contributor

    @jliexpensify it is reproducible

  8. jeet-dhandha commented on Jul 18, 2023

    @jeet-dhandha
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    • Getting error for using value and defaultValue props together in TextInput component via Form.js file.

    What is the root cause of that problem?

    • The root cause of the problem is that we are not removing defaultValue prop when cloning the Component in Form.js file.

    What changes do you think we should make in order to solve the problem?

    • Adding defaultValue: undefined to the Form.js file's React.cloneElement function fixes the issue and it doesn't break as we are already initializing the value prop to defaultValue in the Form.js file.
    Video
    ed733e8b-5e8c-42aa-b74b-204a62868fd1.mp4

    What alternative solutions did you explore? (Optional)

    • N/A
  9. added
    External
    and removed
    Needs Reproduction
    on Jul 18, 2023
  10. 12 remaining items

  11. s77rt commented on Jul 27, 2023

    @s77rt
    Member

    Still on hold

  12. removed their assignment
    on Aug 7, 2023
  13. jliexpensify commented on Aug 22, 2023

    @jliexpensify
    Contributor

    Still on hold

  14. Nikhil-Vats commented on Aug 22, 2023

    @Nikhil-Vats
    Contributor

    The other issue is merged and deployed to prod @jliexpensify so we can close this.

  15. jliexpensify commented on Aug 22, 2023

    @jliexpensify
    Contributor

    Awesome, thank you @Nikhil-Vats ! I'll need to pay out @rayane-djouah a reporting bonus though.

  16. aimane-chnaif commented on Aug 22, 2023

    @aimane-chnaif
    Contributor

    This issue (same root cause) was first reported in #22169

  17. jliexpensify commented on Aug 22, 2023

    @jliexpensify
    Contributor

    Ah, thank you @aimane-chnaif - you're correct. Unfortunately, you don't qualify for a bonus @rayane-djouah .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugEngineeringExternalWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions