diff --git a/index.html b/index.html index aebb76f2..c5ff6724 100644 --- a/index.html +++ b/index.html @@ -794,7 +794,7 @@ - + Opacity diff --git a/modules/ui/style.js b/modules/ui/style.js index a3d84b02..b0f092fc 100644 --- a/modules/ui/style.js +++ b/modules/ui/style.js @@ -292,7 +292,7 @@ styleGroupSelect.addEventListener("change", selectStyleElement); function getEl() { const el = styleElementSelect.value; const g = styleGroupSelect.value; - if (g === el) return svg.select("#" + el); + if (g === el || g === "") return svg.select("#" + el); else return svg.select("#" + el).select("#" + g); }