Hello Nordcraft Community o/
I created a modal component to view documents which includes a Table of Contents (ToC).
The ToC links need to scroll the modal's content area to the corresponding heading (identified by ID).
Standard anchor links aren't scrolling correctly within the modal.
What's the recommended way to implement scrolling to an element by its ID inside a modal component in Nordcraft?
Looking for any guidance on how to make these ToC links function.
Additional info
ToC is generated by a custom formula that extracts the headings from the document and saved to a variable. The objects in the array contain: tag, text, id.
Currently (with standard anchor tags implemented), I can see my address bar add the #toc-text but no scroll within the modal.