diff --git a/frontend/src/lib/components/ChecklistModal.svelte b/frontend/src/lib/components/ChecklistModal.svelte index d0e08956..7f8ed6d2 100644 --- a/frontend/src/lib/components/ChecklistModal.svelte +++ b/frontend/src/lib/components/ChecklistModal.svelte @@ -40,9 +40,9 @@ updated_at: '' } ]; - if (checklist) { - newChecklist.items = items; - } + + newChecklist.items = items; + newItem = ''; newStatus = false; warning = ''; @@ -158,20 +158,6 @@ class="input input-bordered w-full max-w-xs mt-1" /> -
{ + if (e.key === 'Enter') { + e.preventDefault(); + addItem(); + } + }} /> + {/if}