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
When the direct child of ValidationProvider has a v-if directive set to false, every child of ValidationProvider disappears from rendered HTML.
If you delete v-slot="{ errors }" from ValidationProvider and element which renders the error, everything works as expected.
Change the v-if directive to true and input will appear.
Change back v-if to false, remove v-slot="{ errors }" and span, which renders that error.
Input appears again.
Expected behavior
Setting v-if directive to a child of ValidationProvider, when ValidationProvider has a v-slot="{ errors }" directive should affect only this particular element, not everything inside ValidationProvider.
The text was updated successfully, but these errors were encountered:
KubaC701
changed the title
Each children disappears, when v-if inside ValidationProvider is falsy
Each child disappears, when v-if inside ValidationProvider is falsy
Jun 3, 2021
But, @logaretm it seems like it's a bug only with the (latest) Vue 2.6.13, because when I switch back to 2.6.12, there is no issue. Weird, because 2.6.13 should only be bug fixes 🤔
Versions
Describe the bug
When the direct child of ValidationProvider has a v-if directive set to false, every child of ValidationProvider disappears from rendered HTML.
If you delete
v-slot="{ errors }"
from ValidationProvider and element which renders the error, everything works as expected.To reproduce
Steps to reproduce the behavior:
v-slot="{ errors }"
and span, which renders that error.Expected behavior
Setting v-if directive to a child of ValidationProvider, when ValidationProvider has a
v-slot="{ errors }"
directive should affect only this particular element, not everything inside ValidationProvider.Demo link
https://codesandbox.io/s/bold-http-j81q7?file=/src/App.vue
The text was updated successfully, but these errors were encountered: