We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Conditionally rendering does not work with v-if.
v-if
https://stackblitz.com/edit/stackblitz-starters-ewzdtl?file=src%2Fcomponents%2FTheExperience.vue
Use v-if on a TresGroupand try to make the it's content become visible.
TresGroup
No response
pnpm
The text was updated successfully, but these errors were encountered:
I also have the issue. Not sure if it's the same bug or not, but when using a raw mesh instead of a mesh wrapped in a group, the click on "click twice" does toggle the cube off then on... but only once: https://stackblitz.com/edit/stackblitz-starters-bumhz6?file=src%2Fcomponents%2FTheExperience.vue. Same thing if I wrap everything within a <template>
<template>
Sorry, something went wrong.
Here's another pared down StackBlitz exhibiting the error. This time with 2 mesh setups, perhaps leading in a useful direction.
In the example:
TresMesh
Scene
null
Group
Expanding on the bug report from @Tinoooo , the problem appears to be elements – not just TresGroup – that are parented to the Scene and toggled with v-if. Here's the StackBlitz from @Tinoooo , but I've parented the v-if'd TresGroup to another TresGroup. It works as expected.
Tinoooo
Successfully merging a pull request may close this issue.
Describe the bug
Conditionally rendering does not work with
v-if
.Reproduction
https://stackblitz.com/edit/stackblitz-starters-ewzdtl?file=src%2Fcomponents%2FTheExperience.vue
Steps to reproduce
Use
v-if
on aTresGroup
and try to make the it's content become visible.System Info
No response
Used Package Manager
pnpm
Code of Conduct
The text was updated successfully, but these errors were encountered: