From f181948c7e4d473863fb4c3fc0006bcd0c4220d4 Mon Sep 17 00:00:00 2001 From: Tim Fischbach Date: Tue, 1 Oct 2024 14:06:09 +0200 Subject: [PATCH] Fix flickering when sorting sections after returning to the outline Properly tear down sortables. On second visit of the outline, the old sortables were still intervening and causing chaotic behavior. REDMINE-20837 --- package/src/ui/views/SortableCollectionView.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/src/ui/views/SortableCollectionView.js b/package/src/ui/views/SortableCollectionView.js index 2c31b0ec2..ed6a5f4fc 100644 --- a/package/src/ui/views/SortableCollectionView.js +++ b/package/src/ui/views/SortableCollectionView.js @@ -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); },