Skip to content

HTML5 input browser warnings #6992

@radekmie

Description

@radekmie

In my render method, I have something like

<input type="email" value={this.state.input} onChange={() => {}} />

If I first render this input - no matter what - browser remains silent. When I call this.setState({input: 'invalid2'}) (or press any with this input focused), it moves cursor at the end and yields a warning:

screenshot from 2016-06-08 10-45-11

jsfiddle

This might be related: #6441.

It's happening in 15.1.0, I haven't tested any other version.

Is this expected behavior?

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