When using the native ToC element, everything works fine except for assigning the active state to the current element. I found out that it has something to do with relatively positioned containers that contain my headings. Any heading inside a container that is ralatively positioned is not highlighted in the ToC, except the last one.
Is this behavior intentional, or does anyone have a workaround for me?
I tested with relatively positioned headers and I could not reproduce your exact issue. I actually got one similar, where I could not select the previous heading of a relatively positioned one, so that will definitely go to the bug tracker.
But, I would also like to replicate your bug. Would you mind copy-pasting your structure/elements here, so I can test on your example?
If you want, you can also send it to the help@bricksbuilder.io, so we can take a look. If you will send an email, please also send a link to this thread.