From 06c1a548867e37a74a8493bd44fef728e10c658b Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 3 Oct 2022 20:19:35 +0000 Subject: [PATCH] feat: fancycheckbox script setup (#2462) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2462 Co-authored-by: Dominik Pschenitschni Co-committed-by: Dominik Pschenitschni --- src/components/input/fancycheckbox.vue | 68 ++++++++++++-------------- 1 file changed, 32 insertions(+), 36 deletions(-) diff --git a/src/components/input/fancycheckbox.vue b/src/components/input/fancycheckbox.vue index 31380bf9f..8c844bd6d 100644 --- a/src/components/input/fancycheckbox.vue +++ b/src/components/input/fancycheckbox.vue @@ -4,8 +4,9 @@ :checked="checked" :disabled="disabled || undefined" :id="checkBoxId" - @change="(event) => updateData(event.target.checked)" - type="checkbox"/> + @change="(event: Event) => updateData((event.target as HTMLInputElement).checked)" + type="checkbox" + />