I’ve noticed what looks like a (minor) bug when using exclude
with <<toc-selective-expandable ... >>
If there are tiddlers with tags matching a node in the tree, but all of them are excluded by the filter, we still show the right arrow. Clicking it, gives you the down arrow, but no children.
You can download the following and drag it onto an empty wiki or any other one and load “Demo”:
TOC_Bug.json (1.8 KB)
It includes
<<toc-selective-expandable 'Root' exclude:"[!tag[MyTag]]">>
Note that while there is a tiddler tagged Qux
(Wug), that tiddler does not have the tag MyTag. Foo > Qux
has no children in this hierarchy. Hency, it should not have the icon; it should look more like “Grault”, “Garply”, and “Waldo” in this tree.
It doesn’t expand to show anything, so this is fairly minor, but it definitely seems like a bug.
> Foo > Qux ^---------------------- Doesn't belong > Bar > Corge Grault > Baz Garply Waldo
While I could probably figure it out, someone who knows the TOC code would be able to do it many times more quickly. Should I simply raise an issue on GitHub?
Or am I missing something? Is there a reason this behavior is intended?