Skip to content

Intercept that filters numbers seems to be letting '.' onto a React form input #1029

@mattruby

Description

@mattruby

I have a:
2. [X ] Issue:

  • [X ] Provide a minimal sample reproduction. create a reproduction based on this codesandbox

Here's my sample code: https://codesandbox.io/s/G5v71oDA8

I have an intercept that will only allow numbers to be added to model.age. I'm not sure how, but I'm able to add a . onto the input. It will not hit the model, but it will show in the input. If I type another . the first will be removed.

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