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
Let's say in the blueprint I want to have a text field with input value for float. If max validation directive for that field is specified, you cannot input float numbers via Grav Admin UI.
Blueprint example which doesn't work:
myoption:
type: text
size: x-small
label: "some label"
validate:
type: number
min: 0
max: 1
Blueprint example which does work:
myoption:
type: text
size: x-small
label: "some label"
validate:
type: number
min: 0
Looks like some kind of JavaScript bug in validation code.
P.S. I cannot use number field type either, because then HTML5 input validation blocks anything that is not integer completely.
The text was updated successfully, but these errors were encountered:
Using float number in number field type is partially possible with the step option and setting the step to the smallest allowed fractionnal part (e.g. 0.001 to allow floats with 3 digit after the decimal point).
Let's say in the blueprint I want to have a text field with input value for float. If max validation directive for that field is specified, you cannot input float numbers via Grav Admin UI.
Blueprint example which doesn't work:
Blueprint example which does work:
Looks like some kind of JavaScript bug in validation code.
P.S. I cannot use number field type either, because then HTML5 input validation blocks anything that is not integer completely.
The text was updated successfully, but these errors were encountered: