Skip to content

Value returned with "+" or "-" sign inside can be an empty string #793

@AntoineMoues

Description

@AntoineMoues

Some browsers permits characters + and - to be typed into input with type number. These can be inserted anywhere in the input and not constrained to the first character (for example, using - to declare a negative value). This often leads to issue in JavaScript. One of them is the fact that the returned value by the input becomes inaccessible.

To avoid this kind of behavior, the e character is often prevented from being typed in input type number. This is the case for ember-amount-input.

Could this behavior also exists for + and - characters ? As they could be expected by users (for some negative values), should this be only accessible with an arg as absoluteOnly or integerOnly ?

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