Skip to content

Commit

Permalink
fix(FormGroup): prevent input click from propagating to label (nuxt#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
romhml authored and Haythamasalama committed Sep 21, 2023
1 parent 3b9cc2b commit 737d5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/forms/FormGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<p v-if="description" :class="[ui.description, size]">{{ description }}</p>

<div :class="[label ? ui.container : '']">
<div :class="[label ? ui.container : '']" @click="$event.preventDefault()">
<slot v-bind="{ error }" />

<p v-if="error && typeof error !== 'boolean'" :class="[ui.error, size]">{{ error }}</p>
Expand Down

0 comments on commit 737d5c0

Please sign in to comment.