async-validator icon indicating copy to clipboard operation
async-validator copied to clipboard

I can't create a asyncfiled

Open nyj000 opened this issue 2 years ago • 2 comments

const scheduleStartValidator = (rule, value, callback) => { console.log(11111) } const rules = { entryCondition: { type: 'object', required: true, fields: { scheduleStart: { asyncValidator: scheduleStartValidator } } } }

const validator = new AsyncValidator(item) validator.validate(taskData, { first : false }, (errors) => { })

nyj000 avatar Jan 07 '23 10:01 nyj000

it log nothing, and errors is null

nyj000 avatar Jan 07 '23 10:01 nyj000

image

nyj000 avatar Jan 07 '23 10:01 nyj000