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
I lost quite some time trying to figure out when my code didn't work.
The error was on my part, not vue, but i think Vue should trigger an error in this case.
The problem is that you CANNOT use v-show on a <template> tag, which make sense since v-show add inline style to the node and the <template> tag does not render a node.
What does the proposed API look like?
A Vue warning/error should suggest changing the v-if (if possible) or change the <template> tag for a DOM element (like a <div>)
The text was updated successfully, but these errors were encountered:
posva
changed the title
v-show on <template> should trigger warning/error
Trigger a warning when v-show and other incompatible directives are used on <template>
Oct 31, 2019
What problem does this feature solve?
Hi,
I lost quite some time trying to figure out when my code didn't work.
The error was on my part, not vue, but i think Vue should trigger an error in this case.
The problem is that you CANNOT use
v-show
on a<template>
tag, which make sense sincev-show
add inline style to the node and the<template>
tag does not render a node.What does the proposed API look like?
A Vue warning/error should suggest changing the
v-if
(if possible) or change the<template>
tag for a DOM element (like a<div>
)The text was updated successfully, but these errors were encountered: