Closed fmaclen closed 1 year ago
Hi, there! I have a question. When the user clicks away from the field, value
doesn't change, correct? So why do we need to call setFormattedValue()
?
@gokullan there are some scenarios where formatting is not automatically applied, more specifically:
Backspace
and the formattedValue
is ['$', '-$', "-"]
.
and you type 123.
but don't enter decimals (same if ,
decimal point)In these cases, if you click away from the input it will just stay unformatted.
It'd be nice if the on:blur
event applied the formatting, which for the cases above would end up looking like:
$0.00
$123
:tada: This issue has been resolved in version 0.7.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
When the user clicks away from the field, we should run
setFormattedValue()
to apply the formatting one last time.