Skip to content

Input element that type is'number' does not meet expectations #10489

Closed
@MrErHu

Description

@MrErHu

For Example:

<input type="number" onChange={this._onChange} />

In Chrome, you cannot type a non-number character, in Safari And Firefox, You can type non-number character ,but in this moment value of Change is empty string ""。How can solve this problem?

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