1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 21:29:38 +02:00

Client-side validation for Decimal precision of 19,4 (#821)

This commit is contained in:
Zach Gollwitzer 2024-05-30 22:07:47 -04:00 committed by GitHub
parent de53a50e45
commit bcbb37a146
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,6 +39,8 @@ class ApplicationFormBuilder < ActionView::Helpers::FormBuilder
value: money&.amount,
"data-money-field-target" => "amount",
placeholder: Money.new(0, currency).format,
min: -99999999999999,
max: 99999999999999,
step: currency.step
}