You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the checkbox is encapsulated as a component and uses the 'v-on = "$ listeners"' binding when listening events
The parent component listens to its 'onchange' event, triggers the time before the value of the checkbox is modified,
Resulting in the lack of the correct value,
Only listen to the original 'change' event, or use 'nextTick' to get the latest value
Such a situation does not appear in v2.4.4.
Can be modified by modifying the vue version to be reproduced
From Google Translate
What is expected?
父级组件'onchange'应该在value正确得到修改之后触发.
The parent component 'onchange' should be triggered after the value has been modified correctly.
The parent component 'onchange' event is triggered before the value is modified, resulting in the inability to get the correct value and can only be obtained by 'nextTick'.
这种情况在2.4.4没有出现.
导致两个版本无法兼容
This situation did not occur in 2.4.4.
Resulting in two versions that are not compatible