-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Description
Tabs component automatically activate first available tab:
ngx-bootstrap/src/tabs/tabset.component.ts
Line 100 in 0357a3a
| 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.