fix(runtime-dom): fix getModelAssigner order in vModelCheckbox (#926)

This commit is contained in:
Jian Zhang 2020-04-06 21:55:19 +08:00 committed by GitHub
parent c34258fcba
commit da1fb7afef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,8 +115,8 @@ export const vModelCheckbox: ModelDirective<HTMLInputElement> = {
})
},
beforeUpdate(el, binding, vnode) {
setChecked(el, binding, vnode)
el._assign = getModelAssigner(vnode)
setChecked(el, binding, vnode)
}
}