You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs, Children can be any of string, number, boolean, etc
Supply a boolean value as the children for the render function
What is expected?
It will render the boolean value in the template (e.g. true or false) regardless of the boolean value
What is actually happening?
It renders empty node instead
System Info
https://stackblitz.com/edit/vue-baopmh?file=src%2FApp.js
Seems to be reproducible regardless of the system
Any additional comments?
For context, the component that we're using simply renders the value it is given, and one of them represents a boolean value to be displayed in the UI. Technically we could've always parsed them to string first, but since the docs says boolean is allowed, we'd expect to see them rendered.
The text was updated successfully, but these errors were encountered:
So now my question is whether the docs is trying to say that boolean value is allowed but an empty node will be rendered instead, or boolean value is allowed and it's supposed to be rendering a stringified version of the boolean value (true or false) which isn't the case.
@edison1105 I understand that, but you're still passing a string at the end. I think it's just the fact that the doc says you could pass in a boolean and it will be rendered, which is misleading because an empty node is rendered instead. Either the doc needs to be updated or the code needs to be updated
Vue version
3.2.26
Link to minimal reproduction
https://stackblitz.com/edit/vue-baopmh?file=src%2FApp.js
Steps to reproduce
Children
can be any ofstring
,number
,boolean
, etcWhat is expected?
It will render the boolean value in the template (e.g.
true
orfalse
) regardless of the boolean valueWhat is actually happening?
It renders empty node instead
System Info
https://stackblitz.com/edit/vue-baopmh?file=src%2FApp.js Seems to be reproducible regardless of the system
Any additional comments?
For context, the component that we're using simply renders the value it is given, and one of them represents a boolean value to be displayed in the UI. Technically we could've always parsed them to string first, but since the docs says
boolean
is allowed, we'd expect to see them rendered.The text was updated successfully, but these errors were encountered: