From 4000c954f178205d072f757609d8af2fbf859b42 Mon Sep 17 00:00:00 2001 From: evolvedexperiment <55178666+evolvedexperiment@users.noreply.github.com> Date: Wed, 3 Aug 2022 20:47:29 +0200 Subject: [PATCH] Fix for State opacity (#853) --- index.html | 2 +- modules/ui/style.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }