Subscribe on changes!

Unexpected behavior on v-model when parent component does not sets v-model to the child component

avatar
Mar 11th 2022

Version

3.2.25

Reproduction link

codesandbox.io

Steps to reproduce

See the linked code sandbox.

What is expected?

the child component should not work if the parent does not sets the v-model on child component

What is actually happening?

the child component inherits the 'v-model' what the root component sets on the parent component

avatar
Mar 11th 2022

I think that's normal because you need to state inheritAttrs: false in WrapperInput.vue.

avatar
Mar 11th 2022

I think that's normal because you need to state inheritAttrs: false in WrapperInput.vue.

I think you are right, thanks! @ygj6