Skip to content

Commit

Permalink
Fix flickering when sorting sections after returning to the outline
Browse files Browse the repository at this point in the history
Properly tear down sortables. On second visit of the outline, the old
sortables were still intervening and causing chaotic behavior.

REDMINE-20837
  • Loading branch information
tf committed Oct 1, 2024
1 parent eadca28 commit f181948
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package/src/ui/views/SortableCollectionView.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ export const SortableCollectionView = CollectionView.extend({
return this;
},

onClose() {
CollectionView.prototype.onClose.call(this);
this.sortable.destroy();
},

disableSorting() {
this.sortable.option('disabled', true);
},
Expand Down

0 comments on commit f181948

Please sign in to comment.