Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AntoineMoues opened this issue Apr 10, 2024 · 0 comments
Open

Comments

@AntoineMoues
Copy link
Contributor

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant