Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NavChangeEvent is raised if activeId is not set #3564

Closed
ghost opened this issue Jan 27, 2020 · 1 comment · Fixed by #3567
Closed

NavChangeEvent is raised if activeId is not set #3564

ghost opened this issue Jan 27, 2020 · 1 comment · Fixed by #3567

Comments

@ghost
Copy link

ghost commented Jan 27, 2020

Bug description:

https://ng-bootstrap.github.io/#/components/nav/api#NgbNavChangeEvent

The payload of the change event emitted right before the nav change happens on user click.
This event won't be emitted if nav is changed programmatically via [activeId] or .select().

But if I don't set the initial activeId, the event is emitted after plugin selects the first tab for me

image

Link to minimally-working StackBlitz that reproduces the issue:

https://stackblitz.com/edit/angular-qqykku?file=app/nav-basic.html

@maxokorokov
Copy link
Member

@nseni yep, thanks for this. This is the omitted use case due to the late refactoring before releasing navs... Should be fixed in 5.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant