Skip to content

Commit

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

1 comment on commit 4c58330

@vercel
Copy link

@vercel vercel bot commented on 4c58330 Sep 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxt-js.vercel.app
ui-nuxt-js.vercel.app
ui.nuxt.com

Please sign in to comment.