1👍
✅
This line is wrong:
v-on:input="$emit('input', value)"
This is emitting the old value.
It should be:
v-on:input="$emit('input', $event)"
This will emit the new value.
Alternatively you could use:
v-on:input="value => $emit('input', value)"
Or move it out to a method in methods
.
Source:stackexchange.com