aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2021-01-27 15:07:36 +0000
committers-ol <s-ol@users.noreply.github.com>2021-01-27 15:07:36 +0000
commit94d1b4a08b145dad8556fd536a2e776391406067 (patch)
tree343ffa7876b8c092d23f6c1d75b9c27c96c8f19e /src/index.js
parentactually visually collapse nodes (diff)
downloadfedidag-94d1b4a08b145dad8556fd536a2e776391406067.tar.gz
fedidag-94d1b4a08b145dad8556fd536a2e776391406067.zip
collapse on header only
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 6a20a0c..c90c3ab 100644
--- a/src/index.js
+++ b/src/index.js
@@ -158,7 +158,7 @@ update(graph)
.catch(err => console.error(err));
const hideNote = (e) => {
- const clicked = graph[e.currentTarget.dataset.id];
+ const clicked = graph[e.currentTarget.parentElement.dataset.id];
clicked.collapsed = clicked.collapsed ? false : 'explicit';
for (const id of updateCollapsed(graph, clicked)) {