diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2018-04-15 23:20:48 -0300 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2018-04-16 00:19:03 -0300 |
commit | b7358179012d1f34ff8204de2c7d91983550417d (patch) | |
tree | e5d90f23513d8e7e027681f73a78b4ca71883c93 /client | |
parent | 4dbe6feb8c91bd78be9a1dff369f4fe91ef47a9e (diff) | |
download | wekan-b7358179012d1f34ff8204de2c7d91983550417d.tar.gz wekan-b7358179012d1f34ff8204de2c7d91983550417d.tar.bz2 wekan-b7358179012d1f34ff8204de2c7d91983550417d.zip |
Fix #1577
Diffstat (limited to 'client')
-rw-r--r-- | client/components/lists/listHeader.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js index 60dd6a34..cf26aa93 100644 --- a/client/components/lists/listHeader.js +++ b/client/components/lists/listHeader.js @@ -34,8 +34,8 @@ BlazeComponent.extendComponent({ events() { return [{ '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); listComponent.openForm({ position: 'top', |