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

v-text no longer outputs JSON.stringified objects #2430

Closed
stowball opened this issue Oct 19, 2020 · 0 comments · Fixed by #2432
Closed

v-text no longer outputs JSON.stringified objects #2430

stowball opened this issue Oct 19, 2020 · 0 comments · Fixed by #2432
Assignees
Labels
has PR A pull request has already been submitted to solve the issue scope: compiler

Comments

@stowball
Copy link

stowball commented Oct 19, 2020

Version

3.0.1

Reproduction link

https://codepen.io/stowball/pen/MWeerzR

Steps to reproduce

  1. Have some data in an object
  2. Output it in the template using v-text

What is expected?

To output a JSON.stringify() version of the object, like in Vue 2, especially as the docs say that v-text is the same as {{ }} https://v3.vuejs.org/api/directives.html#v-text

What is actually happening?

It outputs a obj.toString(), which renders the infamous [object Object]

@posva posva self-assigned this Oct 19, 2020
posva added a commit that referenced this issue Oct 19, 2020
@posva posva added scope: compiler has PR A pull request has already been submitted to solve the issue labels Oct 19, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
has PR A pull request has already been submitted to solve the issue scope: compiler
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants