Skip to content

[0.26.0-rc] autocorrect broken #7496

@sjmueller

Description

@sjmueller

When setting up a TextInput to keep in sync with state (as per documentation), autocorrect breaks. For example:

<TextInput
  style={styles.title}
  placeholder="Title"
  onChangeText={title => this.setState({title})}
  value={this.state.title}
/>

It seems that the value of the native control is now getting overridden during every onChangeText event that updates state, because even things like double space no longer results in a period.

autocorrect

For reference, I'm also on react 15.0.2

Metadata

Metadata

Assignees

No one assigned

    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