Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(v-model): add v-model section #1839

Merged
merged 1 commit into from Oct 27, 2022
Merged

docs(v-model): add v-model section #1839

merged 1 commit into from Oct 27, 2022

Conversation

pikax
Copy link
Member

@pikax pikax commented Oct 27, 2022

Simple how to handle components with v-model

@netlify
Copy link

netlify bot commented Oct 27, 2022

Deploy Preview for vue-test-utils-docs ready!

Name Link
🔨 Latest commit 86d9376
🔍 Latest deploy log https://app.netlify.com/sites/vue-test-utils-docs/deploys/635a5564e61fea000862892c
😎 Deploy Preview https://deploy-preview-1839--vue-test-utils-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@cexbrayat cexbrayat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to write this ♥️

@lmiller1990 lmiller1990 merged commit 8188784 into vuejs:main Oct 27, 2022
@pikax pikax deleted the docs/add_v-model_page branch October 27, 2022 16:09
@nelisbijl
Copy link

Unfortunately this only describes how to work around Vue's built-in v-model. Replace the value and @input props in Editor with v-model and it won't work

@pikax
Copy link
Member Author

pikax commented Oct 13, 2023

Replace the value and @input props in Editor with v-model and it won't work

That's because you must call the correct event on model change, if you use the defineModel or useVModel it will work

@nelisbijl
Copy link

That makes no difference. Problem is not the way the custom modelValue is defined, problem is the use of Vue's built-in v-model on the <input tag.
Probably related to this warning:
[Vue warn]: withDirectives can only be used inside render functions.
No idea, how to resolve that (if at all possible)

@pikax
Copy link
Member Author

pikax commented Oct 13, 2023

@nelisbijl if you find a bug, please report on the correct project issue page not on a year's old merged PR.

For questions please use forums, discord, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants