Skip to content

Commit 097fddb

Browse files
committed
Make component + v-else caveat linkable. Add link in API
1 parent 53b5b94 commit 097fddb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/api/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,6 +1563,7 @@ type: api
15631563
```
15641564

15651565
- **See also:** [Conditional Rendering - v-else](/guide/conditional.html#v-else)
1566+
- **See also:** [Conditional Rendering - Component caveat](/guide/conditional.html#Component-caveat)
15661567

15671568
### v-for
15681569

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 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)