Open
Description
Description
When using the Mermaid configuration hideEmptyMembersBox: true
, the behavior is inconsistent:
- Expected behavior: Empty rows should not render in the diagram, regardless of whether the class contains only attributes, only methods, or neither.
- Actual behavior: Rows are hidden only when the class contains neither attributes nor methods. If a class has only attributes or only methods, an empty row is rendered, which is unexpected.
Steps to reproduce
Chart code:
---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class Class1 {
+ a
+ foo()
}
class Class2 {
+ a
}
class Class3 {
+ foo()
}
class Class4
Renderes into:
As I said, I would expect the empty rows not to be rendered.