kaliberjs / forms

Forms for React
MIT License
4 stars 0 forks source link

Some validation functions do not check for existence of a value #21

Open EECOLOR opened 3 years ago

EECOLOR commented 3 years ago

For example:

export const number = x => Number(x) !== x && error('number')

If x is empty it will report a number error. This makes optional number fields impossible.