Skip to content

Commit acae29b

Browse files
committed
Make component + v-else caveat linkable
1 parent 53b5b94 commit acae29b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/guide/conditional.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ You can use the `v-else` directive to indicate an "else block" for `v-if` or `v-
6868
The `v-else` element must immediately follow the `v-if` or `v-show` element - otherwise it will not be recognized.
6969

7070

71-
**Caveat**: when used with components and `v-show`, `v-else` doesn't get applied properly due to directives priorities. So instead of doing this:
71+
### Component with `v-else` caveat
72+
73+
When used with components and `v-show`, `v-else` doesn't get applied properly due to directives priorities. So instead of doing this:
7274

7375
```html
7476
<custom-component v-show="condition"></custom-component>

0 commit comments

Comments
 (0)