Closed changhuixu closed 4 years ago
For an input element,
<input id="dollar-amount" type="text" name="dollar-amount" inputmode="numeric" pattern="^(?=.*\d)\d*(\.\d{1,2})?$" placeholder="0.00" digitOnly decimal="true" />
If enter 1.35, select all, then enter .25. The input box will have value 25, which is not correct.
For an input element,
If enter 1.35, select all, then enter .25. The input box will have value 25, which is not correct.