Skip to content

Fields with "value" attributes become uneditable after transform #14

@ssorallen

Description

@ssorallen

In order for "value" to behave as it does in HTML, the created React components must use "defaultValue". "value" in React creates a controlled component, which makes react-magic generate un-editable inputs.

Currently:

> converter.convert('<input value="Darth Vader">')
"<input value="Darth Vader" />
"

To behave as expected:

> converter.convert('<input value="Darth Vader">')
"<input defaultValue="Darth Vader" />
"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions