Description:
When the NumericTextBox is set to "c0" format and has a value of 0 ($0), it doesn't capture the first digit entered.
Reproduction Steps:
- Set the field value to 0 ($0)
- Hit "Tab" to blur the field
- Hit "Shift-Tab" to focus the field (field contents will be highlighted)
- Enter "123"
- Repeat steps 2 through 4
Browser:
Chrome -- Version 89.0.4389.114 (Official Build) (64-bit)
Expected Behavior:
- After step 4, field shows "$123"
- After step 5, field shows "$123"
Observed Behavior:
- After step 4, the field shows "$230"
- After step 5, the field (correctly) shows "$123"
Notes:
- This bug seems to occur when the field has a value of 0 ($0) before gaining focus
- This doesn't occur when the specified format is "c2" or "n0"
Code Snippet:
<NumericTextBox format="c0" />