Mentions légales du service

Skip to content
Snippets Groups Projects

Resolve "Link all label to inputs on forms"

Merged VIAUD Nathan requested to merge 247-link-all-label-to-inputs-on-forms into main
10 files
+ 55
26
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -2,6 +2,7 @@
import { getCurrentState } from '@/src/shared/services/undoRedo.service';
defineProps<{
id: string;
inputValue: boolean;
label: string;
pos: number;
@@ -27,13 +28,13 @@ function onChange(event: Event) {
<template>
<div class="checkbox">
<input
:id="'Checkbox' + String(pos)"
:id="id"
class="checkbox-input"
type="checkbox"
:checked="inputValue"
@change="onChange"
>
<label :for="'Checkbox' + String(pos)">{{ label }}</label>
<label :for="id">{{ label }}</label>
</div>
</template>
Loading