Skip to content

Layout subtype ignored when shapes array reference is modified #4967

Description

@zstoyanova9

Description

When the shapes array reference changes (whether by creating a new reference with spread operator, replacing the array entirely, etc.), the defined layout subtype property is ignored. For example, a layout configured as { type: 'tree', subtype: 'right' } renders with a "down" subtype instead.

Steps To Reproduce

  1. Open the following example - https://stackblitz.com/edit/angular-chtgh6my
  2. Click the "Add shape" button and see how the layout of the Diagram changes.

Actual Behavior

The subtype property is ignored and the layout defaults to "down".

Expected Behavior

The layout's subtype property should be preserved and applied correctly after adding a new shape.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions