summaryrefslogtreecommitdiffstats
path: root/client/components/lists/list.js
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-01-31 14:12:08 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-01-31 14:13:14 -0300
commitd3c110cd8f3ad16a4ced5520c27ab542cc79b548 (patch)
treee714a60c7d86ce44d854228b7bc1f4823880ed5e /client/components/lists/list.js
parentf6fb05d3f49c656e9890351f5d7c0827bf2605c1 (diff)
downloadwekan-d3c110cd8f3ad16a4ced5520c27ab542cc79b548.tar.gz
wekan-d3c110cd8f3ad16a4ced5520c27ab542cc79b548.tar.bz2
wekan-d3c110cd8f3ad16a4ced5520c27ab542cc79b548.zip
Workaround to avoid drag bug
Diffstat (limited to 'client/components/lists/list.js')
-rw-r--r--client/components/lists/list.js4
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({