You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
NumberBox format function fails if we add commas or $ in the formatted text. Something like $200,000 will break the widget and it will not change state anymore.
To Reproduce
Steps to reproduce the behavior:
Use NumberFormat.currency().format as the format function, NumberBox will be broken.
Expected behavior
If users are given the option to have any arbitrary format function, then the assumption that num.tryParse() will be able to parse the formatted text back to a num value is incorrect.
The text was updated successfully, but these errors were encountered:
We can add an additional reverseFormat function to let users define how to parse their formatted text back to a num value
HarsimranVirk
changed the title
🐛 NumberBox format funtion breaks functionality if num.tryParse can not parse the text
🐛 NumberBox format function breaks it if num.tryParse can not parse the text
Jan 14, 2025
Describe the bug
NumberBox format function fails if we add commas or $ in the formatted text. Something like $200,000 will break the widget and it will not change state anymore.
To Reproduce
Steps to reproduce the behavior:
Use NumberFormat.currency().format as the format function, NumberBox will be broken.
Expected behavior
If users are given the option to have any arbitrary format function, then the assumption that num.tryParse() will be able to parse the formatted text back to a num value is incorrect.
The text was updated successfully, but these errors were encountered: