galki/material-ui-form

Validating "isRequired" and isLength in data-validators

Opened this issue · 0 comments

Hello,

Is it possible to add a string and array of objects in data-validators?
This is what I am trying to achieve:
<TextField fullWidth name="Name" value="" margin="normal" data-validators={['isRequired', [{ isLength: { min: 4, max: 5 } }]]} />

After testing, the 'isLength' validation does not work.