diff --git a/services/web/frontend/js/features/source-editor/extensions/ranges.ts b/services/web/frontend/js/features/source-editor/extensions/ranges.ts index e66cd898b4..8dc4489d57 100644 --- a/services/web/frontend/js/features/source-editor/extensions/ranges.ts +++ b/services/web/frontend/js/features/source-editor/extensions/ranges.ts @@ -276,6 +276,7 @@ const updateDeleteWidgetHighlight = ( } return decorations.update({ + sort: true, filter: (from, to, decoration) => { return !widgetsToReplace.includes(decoration.spec?.widget) },