-
Notifications
You must be signed in to change notification settings - Fork 295
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-show doesn't seem to work #156
Comments
Also the documentation for It might be better to toggle between |
@RohanTalip confirmed that this is an issue. Looking into applying a fix like you suggested and also looking into the test cases for v-show. |
For what it's worth, I ran into this problem when attempting to use v-show to control the output of a child component that did NOT have a single top-level element. Wrapping the child component elements in a div gave me the expected behavior with v-show. |
@jbarba4 I can confirm the same on my side, if I wrap this with a single top-level element, it works again as normal. Am I missing something in the docs, is there a new dependency update that causes this? Here is my code example which didn't work,
after wrapping it with a div it worked,
Do I really require this for all elements where I use the v-show directive? |
Can confirm v-show and v-if doesn't work on simple things like or , they have to be wrapped by a parent element, which sounds dumb
|
This doesn't work as expected for me:
i.e. The "Hide this" text still shows up.
Also, the code example for v-show in the Vue Native documentation actually uses
v-if
:https://vue-native.io/docs/conditional.html#v-show
The text was updated successfully, but these errors were encountered: