classDiagram 'direction RL' state is maintained when removed #5624
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
By default the direction of a classDiagram is Top-Down until one uses the 'direction RL' directive to change this to Right-Left.
I've however found that after removing this directive the classDiagram orientation stays Right-Left even if I use 'direction TD' (this is not officially mentioned in the documentation but would be intuitive and is a feature in other diagrams) .
This goes for both the mermaid live editor and my sphinx documentation.
In the live editor the diagram fixes itself after a page reload but I haven't been able find a fix for my sphinx documentation.
Steps to reproduce
This diagram should be in the Top-Down orientation.
The diagram should now be in the Right-Left orientation.
The diagram should now once again be in Top-Down orientation, but is not.
It's now still in the Right-Left orientation.
Screenshots
Code Sample
No response
Setup
Suggested Solutions
Additional Context
No response
The text was updated successfully, but these errors were encountered: