From 83bed793f50d895b1669d9b3419c168b8bffb33b Mon Sep 17 00:00:00 2001 From: Domagoj Kriskovic Date: Thu, 7 Nov 2024 16:28:40 +0100 Subject: [PATCH] Add sort:true when updating decorations for delete highlight (#21715) GitOrigin-RevId: afd5aed5a4ea1ff7f9439155b5150b23666b0cc7 --- .../web/frontend/js/features/source-editor/extensions/ranges.ts | 1 + 1 file changed, 1 insertion(+) 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) },