Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Forms are changing uncontrolled input of type text to controlled. #37

@hhsadiq

Description

@hhsadiq

In application, the forms are changing uncontrolled input of type text to controlled. Here is error screenshot.

image

It can be fixed if we add default values in render(). For example in Register.js

Change this

    const email = this.props.email;
    const password = this.props.password;
    const username = this.props.username;

to

    const email = this.props.email || '';
    const password = this.props.password || '';
    const username = this.props.username || '';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions