[FIX] web: error on mobile when kanban groupedBy change

Sometimes when the groupedBy view is changed the index of the current
active column overflow the kanban tabs length.

In this commit this effect is avoided by resetting the active
kanban column to the first one when the groupedBy is changed.

Task: 1893168
This commit is contained in:
Romain Estievenart
2019-02-14 09:25:21 +00:00
committed by Pierre Paridans
parent 9b65b50dfd
commit 829003178e
@@ -201,7 +201,8 @@ KanbanRenderer.include({
var self = this;
return this._super.apply(this, arguments).then(function () {
if (self.state.groupedBy.length) {
return self._moveToGroup(self.activeColumnIndex);
// force first column for kanban view, because the groupedBy can be changed
return self._moveToGroup(0);
}
});
},