I have a form with a number input but it breaks if the user enters 2 negative signs.
A. Entering “-20” gets saved to the form as “-20”
B. Entering 2 negative signs “–20” gets saved as null
Why is the user allowed the enter 2 negative signs when the input type is number? Shouldn’t it know that is not a proper format for numbers?
How can I make sure the user can’t enter two negative signs to break the input?
<ion-input formControlName="startTemperature" type="number" ></ion-input>
Form Value becomes null: