Skip to content

Tabs - prevent auto tab activation #6785

@frenzymind

Description

@frenzymind

Tabs component automatically activate first available tab:

if (!this.defaultActivationScheduled) {

In most cases this is desired behaviour.

But in my case I have directive that activate tab through reading query param. But it lways activate first tab first and then my directive activate requested in params. My components in tabs are heavy, so I want to prevent unnecessary activation. And even they are light, I want prevent this behaviour to be more clean.

Now I use this hack: Object.assign(this.tabset, { defaultActivationScheduled: true }); and its work.

What I desire:

Add option autoActivateTab with default value true, which can control this case.

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