ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

Tabs - prevent auto tab activation

Open frenzymind opened this issue 1 month ago • 0 comments

Tabs component automatically activate first available tab: https://github.com/valor-software/ngx-bootstrap/blob/0357a3a7231945a53593d8c795669df460073c99/src/tabs/tabset.component.ts#L100

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.

frenzymind avatar Nov 18 '25 14:11 frenzymind