Relative Content

Tag Archive for vuejs3

Vue3 custom events are not (always) propagated

I checked out the code from Do custom events propagate up the component chain in Vue 3? were events did get propagated up. See fiddle here: https://jsfiddle.net/fritznet/jqyta7cr/ (taken from linked question)

Vue3 @update:modelValue NOT working on objects?

This is basic stuff, I’m missing something obvious.
I have reproduced the basic v-model example from the docs:
https://vuejs.org/guide/components/v-model.html#basic-usage
and it is working fine. I have added the: @update:modelValue="modelUpdated" handler and it works: the child component detects a change and emits the update event and everything is fine: