Skip to content

MatTab: Provide option to preserve material tab content when switching tabs #20420

@honzajde

Description

@honzajde

Feature Description

Provide option to preserve material tab content when user is switching tabs (do not reinstantiate content) in material tab group.

Use Case

Use cases are well described here:
#16065

For example a list of items as a first tab and details opening in the other tabs.
Often detail tab is an edit form, state of which consists of model state and some temporary form state - I really would need to avoid persisting all that.

At least for me preserving behavior is more intuitive and expected when it comes to thinking of how tabs are used.
So please at least document your chosen behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: material/tabsfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions