summaryrefslogtreecommitdiffstats
path: root/client/components/cards/checklists.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/cards/checklists.js')
-rw-r--r--client/components/cards/checklists.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/components/cards/checklists.js b/client/components/cards/checklists.js
index b8f5e443..93bf0c19 100644
--- a/client/components/cards/checklists.js
+++ b/client/components/cards/checklists.js
@@ -8,6 +8,9 @@ BlazeComponent.extendComponent({
cardId,
title,
});
+ setTimeout(() => {
+ this.$('.add-checklist-item').last().click();
+ }, 100);
},
addChecklistItem(event) {
@@ -16,6 +19,10 @@ BlazeComponent.extendComponent({
const title = textarea.value.trim();
const checklist = this.currentData().checklist;
checklist.addItem(title);
+
+ // We keep the form opened, empty it.
+ textarea.value = '';
+ textarea.focus();
},
editChecklist(event) {