Skip to content

Commit 02c87af

Browse files
docs: updating guidance for conditional class application (#824)
1 parent 604de44 commit 02c87af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/class-and-style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ If you would like to also toggle a class in the list conditionally, you can do i
111111
<div :class="[isActive ? activeClass : '', errorClass]"></div>
112112
```
113113

114-
This will always apply `errorClass`, but will only apply `activeClass` when `isActive` is truthy.
114+
This will always apply `errorClass`, but `activeClass` will only be applied when `isActive` is truthy.
115115

116116
However, this can be a bit verbose if you have multiple conditional classes. That's why it's also possible to use the object syntax inside array syntax:
117117

0 commit comments

Comments
 (0)