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 ?
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
echaracter 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 asabsoluteOnlyorintegerOnly?