Add sort:true when updating decorations for delete highlight (#21715)

GitOrigin-RevId: afd5aed5a4ea1ff7f9439155b5150b23666b0cc7
This commit is contained in:
Domagoj Kriskovic 2024-11-07 16:28:40 +01:00 committed by Copybot
parent 72f03b39c6
commit 83bed793f5

View file

@ -276,6 +276,7 @@ const updateDeleteWidgetHighlight = (
}
return decorations.update({
sort: true,
filter: (from, to, decoration) => {
return !widgetsToReplace.includes(decoration.spec?.widget)
},