feat: add pattern validation for amount input field
- Add pattern="[0-9]+(\.[0-9]{1,2})?" to prevent invalid input
- Browser now validates number format before submission
- Improves UX by catching errors earlier
This commit is contained in:
parent
e0702240d3
commit
8899e1986a
1 changed files with 1 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ defmodule MvWeb.MembershipFeeTypeLive.Form do
|
|||
label={gettext("Amount")}
|
||||
step="0.01"
|
||||
min="0"
|
||||
pattern="[0-9]+(\.[0-9]{1,2})?"
|
||||
required
|
||||
/>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue