Skip to content

Commit

Permalink
fix(Checkbox): bind data-n-ids to root element (#1495)
Browse files Browse the repository at this point in the history
  • Loading branch information
romhml committed Mar 9, 2024
1 parent 80cc593 commit a2b8b70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/components/forms/Checkbox.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="ui.wrapper">
<div :class="ui.wrapper" :data-n-ids="attrs['data-n-ids']">
<div :class="ui.container">
<input
:id="inputId"
Expand Down
3 changes: 2 additions & 1 deletion src/runtime/components/forms/Radio.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="ui.wrapper">
<div :class="ui.wrapper" :data-n-ids="attrs['data-n-ids']">
<div :class="ui.container">
<input
:id="inputId"
Expand Down Expand Up @@ -42,6 +42,7 @@ import { useId } from '#imports'
const config = mergeConfig<typeof radio>(appConfig.ui.strategy, appConfig.ui.radio, radio)
export default defineComponent({
inheritAttrs: false,
props: {
id: {
type: String,
Expand Down

0 comments on commit a2b8b70

Please sign in to comment.