SkepticMystic / breadcrumbs

Add typed-links to your Obsidian notes
https://publish.obsidian.md/breadcrumbs-docs
MIT License
533 stars 36 forks source link

Bug: When codeblock view set to collapse true, opening one node opens all nodes underneath #546

Open ybalkind opened 6 months ago

ybalkind commented 6 months ago

Describe the bug

When I set a codeblock to collapse true, then I expand one of the nodes, all the nodes underneath it also open up as well. Expected behaviour is that expanding a node just expands one level down and I manually expand nodes underneath one by one. For a very big hierarchy it defeats the purpose of "collapse: true" if opening one node opens up all underneath

(left out the rest of the Bug template as seems unnecessary here)

edongashi commented 3 months ago

A root page becomes impossible because of this bug due to the overwhelming number of pages you get as soon as you open one category. I hope it gets addressed soon.

charleshan commented 4 days ago

I was able to fix this problem by changing the default open value of NestedEdgeList to false. It creates a side effect where "Expand" button only expands 2 levels deep. I don't mind this because I think expand all becomes messy with more than three levels down.

What do you think @SkepticMystic?

Here's the change I made: https://github.com/charleshan/breadcrumbs/commit/3dfcdc53e48aa8392882343907de0907b23bb4ee