summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-04-15 23:20:48 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-04-16 00:19:03 -0300
commitb7358179012d1f34ff8204de2c7d91983550417d (patch)
treee5d90f23513d8e7e027681f73a78b4ca71883c93 /client/components
parent4dbe6feb8c91bd78be9a1dff369f4fe91ef47a9e (diff)
downloadwekan-b7358179012d1f34ff8204de2c7d91983550417d.tar.gz
wekan-b7358179012d1f34ff8204de2c7d91983550417d.tar.bz2
wekan-b7358179012d1f34ff8204de2c7d91983550417d.zip
Fix #1577
Diffstat (limited to 'client/components')
-rw-r--r--client/components/lists/listHeader.js4
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',