Skip to content

Commit

Permalink
Merge pull request #2152 from tf/reorder-chapters-fix
Browse files Browse the repository at this point in the history
Fix flickering when sorting sections after returning to the outline
  • Loading branch information
tf authored Oct 1, 2024
2 parents eadca28 + f181948 commit 57f9487
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 57f9487

Please sign in to comment.