Skip to content

Commit

Permalink
fix: revert renaming key in w-toggle (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
felicia-haggqvist authored May 23, 2024
1 parent a086f45 commit 286ed74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/forms/w-toggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const hasLabelAndValue = (e) => 'value' in e && 'label' in e;
<template>
<w-field v-slot="{ triggerValidation }" as="fieldset" v-bind="{ ...$attrs, ...$props }" :role="role">
<div :class="wrapperClasses">
<div v-for="(toggle, i) in toggles" :key="`toggle-${i}`" :class="groupClasses">
<div v-for="(toggle, i) in toggles" :key="id + i + type" :class="groupClasses">
<w-toggle-item
v-model="model"
:indeterminate="indeterminate"
Expand Down

0 comments on commit 286ed74

Please sign in to comment.