fix context panel

This commit is contained in:
JFH
2021-09-21 20:26:45 +02:00
parent 31ce3f3c6f
commit e6b1acbf2d
3 changed files with 14 additions and 20 deletions

View File

@@ -652,7 +652,7 @@ class Editor extends EditorStartup {
if (context) {
let str = '';
linkStr = '<a href="#" data-root="y">' + this.svgCanvas.getCurrentDrawing().getCurrentLayerName() + '</a>';
const parentsUntil = getParentsUntil(context, '#svgcontent > g');
const parentsUntil = getParentsUntil(context, '#svgcontent');
parentsUntil.forEach(function (parent) {
if (parent.id) {
str += ' > ' + parent.id;