Skip to content

Commit

Permalink
fix(FormGroup): prevent input click from propagating to label
Browse files Browse the repository at this point in the history
  • Loading branch information
romhml committed Sep 12, 2023
1 parent 1c707ca commit 5cfd6cc
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 5cfd6cc

Please sign in to comment.