Skip to content

Commit 4bcbce9

Browse files
committed
fix: use useID instead of adding label to "toggle"
1 parent 19c31f2 commit 4bcbce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/Settings/Toggle.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defineEmits(['update:modelValue'])
88
const checked = defineModel<boolean>({
99
required: true,
1010
})
11-
const id = 'toggle-' + props.label
11+
const id = useId()
1212
const { locale, locales } = useI18n()
1313
const dir = computed(() => {
1414
const localeObj = locales.value.find(item => item.code === locale.value)

0 commit comments

Comments
 (0)