pelmered / filament-money-field

Money field powered by Money PHP
MIT License
40 stars 19 forks source link

Validation Error: Field Accepts Only Numeric Values #6

Closed saullo closed 5 months ago

saullo commented 5 months ago

The current validation logic is not handling this scenario appropriately, resulting in the rejection of valid numeric inputs containing a comma.

image

Expected Result: The form should be successfully submitted, and the data entered in the field, even with a comma as the decimal separator, should be accepted.

Actual Result: An error message is displayed, indicating that the field must be a number, preventing the submission of the form when a comma is present.

Solutions: Removing the line "$this->rule('numeric');" works!

image