Bind to value instead of using v-model
This commit is contained in:
parent
489aa88c4b
commit
a73f7c2934
@ -4,7 +4,7 @@ const props = defineProps(["modelValue"]);
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<input
|
<input
|
||||||
v-model="modelValue"
|
:value="modelValue"
|
||||||
@input="$emit('update:modelValue', ($event.target as HTMLInputElement)?.value)"
|
@input="$emit('update:modelValue', ($event.target as HTMLInputElement)?.value)"
|
||||||
class="dark:bg-slate-900">
|
class="dark:bg-slate-900">
|
||||||
</template>
|
</template>
|
Loading…
x
Reference in New Issue
Block a user