Andrés Manelli 7 anni fa
parent
commit
b735817901
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      client/components/lists/listHeader.js

+ 2 - 2
client/components/lists/listHeader.js

@@ -34,8 +34,8 @@ BlazeComponent.extendComponent({
   events() {
   events() {
     return [{
     return [{
       'click .js-open-list-menu': Popup.open('listAction'),
       'click .js-open-list-menu': Popup.open('listAction'),
-      'click .js-add-card' () {
-        const listDom = document.getElementById(`js-list-${this.currentData()._id}`);
+      'click .js-add-card' (evt) {
+        const listDom = $(evt.target).parents(`#js-list-${this.currentData()._id}`)[0];
         const listComponent = BlazeComponent.getComponentForElement(listDom);
         const listComponent = BlazeComponent.getComponentForElement(listDom);
         listComponent.openForm({
         listComponent.openForm({
           position: 'top',
           position: 'top',