fix enter key

This commit is contained in:
2023-09-20 23:45:16 +02:00
parent 2a798744fb
commit 892fda3f47
3 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ defineExpose({ open });
<div class="p-4 bg-slate-800 rounded flex">
<div class="flex me-2 mb-auto">
<span>Count: </span>
<input class="ms-2" type="number" min="0" step="1" v-model="count" />
<input class="ms-2" type="number" min="0" step="1" v-model="count" @keyup.enter="remove" />
</div>
<button class="mb-auto" @click="remove">Remove</button>
</div>