Skip to content

Bug: <input> value never updated in unit test #5934

Closed
@japgolly

Description

@japgolly

Say I have a component that renders an <input type="text" value="whatever">. If I try to unit test it using ReactTestUtils.Simulate.change, the component gets the updated value but then the value attribute in the DOM doesn't get the update.

See https://jsfiddle.net/c1ht6zwm/3/

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