diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2018-01-31 14:12:08 -0300 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2018-01-31 14:13:14 -0300 |
commit | d3c110cd8f3ad16a4ced5520c27ab542cc79b548 (patch) | |
tree | e714a60c7d86ce44d854228b7bc1f4823880ed5e /client/components/lists | |
parent | f6fb05d3f49c656e9890351f5d7c0827bf2605c1 (diff) | |
download | wekan-d3c110cd8f3ad16a4ced5520c27ab542cc79b548.tar.gz wekan-d3c110cd8f3ad16a4ced5520c27ab542cc79b548.tar.bz2 wekan-d3c110cd8f3ad16a4ced5520c27ab542cc79b548.zip |
Workaround to avoid drag bug
Diffstat (limited to 'client/components/lists')
-rw-r--r-- | client/components/lists/list.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/components/lists/list.js b/client/components/lists/list.js index e922a3fd..ce18ce14 100644 --- a/client/components/lists/list.js +++ b/client/components/lists/list.js @@ -18,7 +18,9 @@ BlazeComponent.extendComponent({ // callback, we basically solve all issues related to reactive updates. A // comment below provides further details. onRendered() { - const boardComponent = this.parentComponent().parentComponent(); + let boardComponent = this.parentComponent().parentComponent(); + if (!boardComponent) + boardComponent = this.parentComponent(); const itemsSelector = '.js-minicard:not(.placeholder, .js-card-composer)'; const $cards = this.$('.js-minicards'); $cards.sortable({ |