Skip to content

Commit

Permalink
fix: explicitly bind host attributes on custom inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
YannicEl committed Jan 18, 2024
1 parent 13b2806 commit 564780b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/lib/src/components/UInput.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<input ref="input" v-model="field!.value" :class="classes" />
<input v-model="field!.value" :class="classes" v-bind="$attrs" />
</template>

<script setup lang="ts">
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/components/USelect.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<select v-model="field!.value" :class="classes">
<select v-model="field!.value" :class="classes" v-bind="$attrs">
<slot />
</select>
</template>
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/components/UTextarea.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<textarea v-model="field!.value" :class="classes">
<textarea v-model="field!.value" :class="classes" v-bind="$attrs">
<slot />
</textarea
>
Expand Down

0 comments on commit 564780b

Please sign in to comment.