Closed
Description
Not including the format
option in the schema an input with the inputType: date
will cause validation to fail. It will reset the input and put the UNIX timestamp into the model. It will then put the following warning in the Chrome console:
The specified value "1286686800000" does not conform to the required format, "yyyy-MM-dd".
This issue does not exist in v2.1.1
.
Correct schema:
{
type: 'input',
inputType: 'date',
model: 'date',
format: 'YYYY-MM-DD',
validator: VueFormGenerator.validators.date
}
Example: https://jsfiddle.net/evild70/w3e0p2a6/ (see Chrome console for warning)
I couldn't find any mention of this in the documentation.
Metadata
Metadata
Assignees
Labels
No labels