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
However, I've discovered an issue: when I update some_other_field twice (e.g., by selecting it in the UI and pressing the "up" arrow key twice), the price starts increasing by a factor of 100.
I hope my explanation is clear. If not, feel free to reach out! I'd love to help resolve this and improve the experience. I think Money is a fantastic Hex package that everyone should use.
Best regards,
Max
The text was updated successfully, but these errors were encountered:
Issue with Price Field in LiveView Form
Thanks for the great Money package!
I have a price field declared like this:
I also used the validator from the documentation.
In the LiveView's form component, I'm using
<.simple_form>
. To get the input to display anything at all, I updated the input like this:I also created this helper function to avoid crashes when the price is invalid:
However, I've discovered an issue: when I update
some_other_field
twice (e.g., by selecting it in the UI and pressing the "up" arrow key twice), theprice
starts increasing by a factor of 100.I hope my explanation is clear. If not, feel free to reach out! I'd love to help resolve this and improve the experience. I think Money is a fantastic Hex package that everyone should use.
Best regards,
Max
The text was updated successfully, but these errors were encountered: