Skip to content

Commit 000e99a

Browse files
committed
Change conditional
1 parent 19d83f6 commit 000e99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/VueToggle.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
type="checkbox"
99
@click="toggleState = !toggleState"
1010
/>
11-
<label :for="id" class="toggler" :style="[toggleState ? {'background': activeColor} : null]"/>
11+
<label :for="id" class="toggler" :style="[toggleState && {'background': activeColor}]"/>
1212
<span class="title" v-text="title" @click="toggleState = !toggleState"/>
1313
</section>
1414
</template>

0 commit comments

Comments
 (0)