We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19d83f6 commit 000e99aCopy full SHA for 000e99a
src/components/VueToggle.vue
@@ -8,7 +8,7 @@
8
type="checkbox"
9
@click="toggleState = !toggleState"
10
/>
11
- <label :for="id" class="toggler" :style="[toggleState ? {'background': activeColor} : null]"/>
+ <label :for="id" class="toggler" :style="[toggleState && {'background': activeColor}]"/>
12
<span class="title" v-text="title" @click="toggleState = !toggleState"/>
13
</section>
14
</template>
0 commit comments