fix(components): [el-date-picker] validate callback (#3649)

This commit is contained in:
msidolphin 2021-09-26 11:55:38 +08:00 committed by GitHub
parent 8b0402ae03
commit e1a91b1a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,7 @@ export default defineComponent({
// determine user real change only
if (isClear || !valueEquals(val, valueOnOpen.value)) {
ctx.emit('change', val)
props.validateEvent && elFormItem.validate?.('change', val)
props.validateEvent && elFormItem.validate?.('change')
}
}
const emitInput = (val) => {