Skip to content

Commit

Permalink
Fix toggle BaseSwitch
Browse files Browse the repository at this point in the history
  • Loading branch information
bitlogik committed May 10, 2020
1 parent a662b5d commit 08899be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/BaseSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<input type="checkbox"
v-model="model"
v-bind="$attrs"
v-on="$listeners">
v-on="{...$listeners, input: event => $emit('input', event.target.value === 'on' ? true : false)}"
>
<span class="custom-toggle-slider rounded-circle"></span>
</label>
</template>
Expand Down

0 comments on commit 08899be

Please sign in to comment.