Sort Codemirror widgets Fixes #101

This commit is contained in:
Gregory Schier committed 2024-09-20 05:45:04 -07:00
1 parent 32d7af94a5
commit a18271d306
1 file changed
+4
@@ -165,6 +165,10 @@ function templateTags(
},
});
}
// Widgets must be sorted start to end
widgets.sort((a, b) => a.from - b.from);
return Decoration.set(widgets);
}