Skip to content

Leading minus not working in input (catch-all regexes and inputs type=number) #49

@schoofseggl

Description

@schoofseggl

I use the following pattern for ng-pattern-restrict (as an example)

"^[+\-]?([1-3])*$"

It is applied to a input type=number field. When using ng-pattern-restrict, I am not able to start typing numbers with leading + or - signs. But I am in fact able to first type "2", and then insert a "-" before the "2".

For some other reasons I cannot use an input type=text field.

regards

Andreas

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions