From d4b4be5d1a425592c34ac1bd8a10cefe085b0d23 Mon Sep 17 00:00:00 2001 From: Evolvedexperiment Date: Wed, 3 Aug 2022 16:27:08 +0000 Subject: [PATCH] Fix for State opacity --- 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); }