Skip to content

Uncontrolled <textarea/> ignores setState() #1986

@ASCIIteapot

Description

@ASCIIteapot

Calling setState() for uncontrolled textarea, does not lead to the expected result. In the example http://jsfiddle.net/c88aK/ pressing the button Reset state should reset the state of the input fields to their default values​​. Element input is resets as expected, textarea not. In the debugger, method textarea .render () gets the correct initial data, but changes in the DOM does not occur.

Is this a bug in the implementation of the textarea.render() or I do not correctly understand the essence of uncontrolled input fields?

In any case, as I should reset the value of textarea on the initial state?

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