Skip to content

Fix Account Balance form field#1

Open
Georgy5 wants to merge 1 commit intomainfrom
form-field_number-blalnce-fix
Open

Fix Account Balance form field#1
Georgy5 wants to merge 1 commit intomainfrom
form-field_number-blalnce-fix

Conversation

@Georgy5
Copy link
Owner

@Georgy5 Georgy5 commented Feb 10, 2024

Add a step to the Balance form number_field adjusting the step for currency with two decimal places.
This fixes the constraints some web browsers enforce on number_fields like minimum and maximum values.

Using step: '0.01' instead of step: :any, adjusting to two decimal places.

Add a step to the Balance form number_field adjusting the step for
currency with two decimal places.
This fixes the constraints some web browsers enforce on number_fields
like minimum and maximum values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant