Bind to value instead of using v-model

This commit is contained in:
Jan Bader 2022-03-02 20:06:16 +00:00
parent 489aa88c4b
commit a73f7c2934

View File

@ -4,7 +4,7 @@ const props = defineProps(["modelValue"]);
<template>
<input
v-model="modelValue"
:value="modelValue"
@input="$emit('update:modelValue', ($event.target as HTMLInputElement)?.value)"
class="dark:bg-slate-900">
</template>