From f74fab64b6de484364f011c028ef6fbdeb10f677 Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Fri, 29 Oct 2021 09:32:53 +0200 Subject: [PATCH] Checklist and Checklist-Item editing closes all other inlined forms --- client/components/cards/checklists.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/components/cards/checklists.js b/client/components/cards/checklists.js index f2dc48dfd..06fc89a5e 100644 --- a/client/components/cards/checklists.js +++ b/client/components/cards/checklists.js @@ -188,6 +188,7 @@ BlazeComponent.extendComponent({ } }, + /** closes all inlined forms (checklist and checklist-item input fields) */ closeAllInlinedForms() { this.$('.js-close-inlined-form').click(); }, @@ -216,8 +217,8 @@ BlazeComponent.extendComponent({ 'click .js-delete-checklist-item': this.deleteItem, 'click .confirm-checklist-delete': this.deleteChecklist, 'focus .js-add-checklist-item': this.focusChecklistItem, - 'click .add-checklist-item.js-open-inlined-form': this.closeAllInlinedForms, - 'click .add-checklist.js-open-inlined-form': this.closeAllInlinedForms, + // add and delete checklist / checklist-item + 'click .js-open-inlined-form': this.closeAllInlinedForms, keydown: this.pressKey, }, ];