Skip to content

v-model not updating from external changes? Is this a bug? #7120

Answered by dyc3
dyc3 asked this question in Help/Questions
Discussion options

You must be logged in to vote

Ok. so for anyone who finds this in the future:

The problem was I was returning modelValue at the end of my ClickToEdit's setup(). It's not necessary to export props like this because they are automatically made accessible in the <template>. I'm still not quite sure why that was a problem though.

From my repro linked above, before:

return {
	modelValue,
	editor,
	display,
	editing,
	...
};

After:

return {
	editor,
	display,
	editing,
	...
};

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dyc3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant