Subscribe on changes!

[compat] Component v-model doesn't seen to work in compatibility mode

avatar
Nov 29th 2022

In Vue 2, v-model requires a value prop and an input event - so that's what it also requires with the compat build (until you disable v-model compat).

So this works as intended.

avatar
Nov 29th 2022

As best as I can tell this also doesn't work which is why I ended up trying to update:

https://codesandbox.io/s/shy-cache-y6k0gz?file=/src/Child.vue

Fixed an issue and it does work in the sandbox but the same implementation doesn't reflect in the parent component in my app. Investigating further.

avatar
Nov 30th 2022

Also, fwiw, this seems to be the case for both examples if the whole project is set to MODE 2 or 3 and same at just the component level.