Sort Codemirror widgets Fixes #101

This commit is contained in:
Gregory Schier
2024-09-20 05:45:04 -07:00
parent 32d7af94a5
commit a18271d306

View File

@@ -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);
}